Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Nov 13, 2023
1 parent a2cfb42 commit 456c79e
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 14 deletions.
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.

mod pkg;

use std::error::Error;

use std::{thread, time};
Expand Down
2 changes: 1 addition & 1 deletion src/pkg/environ.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ pub fn get_config(key: &str, def: &str) -> String {

#[test]
fn test_get_config() {
assert_eq!(get_config("CARGO_PKG_NAME", ""), "elk");
assert_eq!(get_config("CARGO_PKG_NAME", ""), "bobcat");
assert_eq!(get_config("CARGO__PKG_NAME", "default"), "default");
}
4 changes: 4 additions & 0 deletions src/pkg/server.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright 2022 Clivern. All rights reserved.
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.

9 changes: 9 additions & 0 deletions src/pkg/smtp.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Copyright 2022 Clivern. All rights reserved.
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.


#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct Mail {
pub id: String,
pub from: String,
pub to: Vec<String>,
pub data: String,
}

0 comments on commit 456c79e

Please sign in to comment.