diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-12-05 17:07:32 +0100 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-12-05 17:07:32 +0100 |
commit | 83ce24c22eff6c778adcdb067b5fc4e8940d808d (patch) | |
tree | ebaf40d7ead8c8b57382549aaae315d078ea9c11 /src/cmd.rs | |
parent | 48c2945172b88c35c187d298a35bf26716af4e91 (diff) |
small round of fixes
better error handlig in cmd/move
do not leak memory in cmd/raw
only process the first given varlink socket
this fixes reuse of global state over multiple sessions
Diffstat (limited to 'src/cmd.rs')
-rw-r--r-- | src/cmd.rs | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -11,9 +11,9 @@ mod list; mod r#move; mod raw; mod remove; +mod search; mod show; mod stats; -mod search; use add_folder::add_folder; use folders::folders; @@ -22,9 +22,9 @@ use list::list; use r#move::r#move; use raw::raw; use remove::remove; +use search::search; use show::show; use stats::stats; -use search::search; pub fn open_submaildir(mut path: PathBuf, sub: &str) -> Maildir { if !sub.is_empty() { @@ -39,7 +39,9 @@ pub struct MailStorage { impl Default for MailStorage { fn default() -> Self { - MailStorage { maildir_path: RwLock::new(None) } + MailStorage { + maildir_path: RwLock::new(None), + } } } |