diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 1391e7a..9ec5af0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,9 @@ mod bayou; mod command; mod config; mod cryptoblob; +mod lmtp; mod login; +mod mail_ident; mod mailbox; mod mailstore; mod server; @@ -38,6 +40,11 @@ enum Command { #[clap(short, long, env = "CONFIG_FILE", default_value = "mailrage.toml")] config_file: PathBuf, }, + /// TEST TEST TEST + Test { + #[clap(short, long, env = "CONFIG_FILE", default_value = "mailrage.toml")] + config_file: PathBuf, + }, /// Initializes key pairs for a user and adds a key decryption password FirstLogin { #[clap(flatten)] @@ -129,6 +136,12 @@ async fn main() -> Result<()> { let server = Server::new(config).await?; server.run().await?; } + Command::Test { config_file } => { + let config = read_config(config_file)?; + + let server = Server::new(config).await?; + //server.test().await?; + } Command::FirstLogin { creds, user_secrets, |