diff options
Diffstat (limited to 'src/cmd/search.rs')
-rw-r--r-- | src/cmd/search.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cmd/search.rs b/src/cmd/search.rs new file mode 100644 index 0000000..7cf0fb0 --- /dev/null +++ b/src/cmd/search.rs @@ -0,0 +1,17 @@ +use crate::cmd::{open_submaildir, MailStorage}; +use crate::de_jmhoffmann_jwebmail_mailstorage::Call_Search; + +pub fn search( + ms: &MailStorage, + call: &mut dyn Call_Search, + folder: String, + _pattern: String, +) -> varlink::Result<()> { + if let Some(p) = ms.maildir_path.read().unwrap().clone() { + let md = open_submaildir(p, &folder); + + todo!(); + } else { + call.reply_not_initialized() + } +} |