summaryrefslogtreecommitdiff
path: root/src/cmd/search.rs
blob: 7cf0fb08b9bb1156580dde29ce677c5cd9b42f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()
    }
}