summaryrefslogtreecommitdiff
path: root/src/cmd.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd.rs')
-rw-r--r--src/cmd.rs23
1 files changed, 17 insertions, 6 deletions
diff --git a/src/cmd.rs b/src/cmd.rs
index 49ba70e..2f2bf47 100644
--- a/src/cmd.rs
+++ b/src/cmd.rs
@@ -7,22 +7,20 @@ use maildir::Maildir;
mod add_folder;
mod folders;
mod init;
-mod list;
+mod list_search;
mod r#move;
mod raw;
mod remove;
-mod search;
mod show;
mod stats;
use add_folder::add_folder;
use folders::folders;
use init::init;
-use list::list;
+use list_search::list_search;
use r#move::r#move;
use raw::raw;
use remove::remove;
-use search::search;
use show::show;
use stats::stats;
@@ -75,7 +73,20 @@ impl VarlinkInterface for MailStorage {
end: i64,
sort: Sort,
) -> varlink::Result<()> {
- list(self, call, folder, start, end, sort)
+ todo!()
+ }
+
+ fn list_search(
+ &self,
+ call: &mut dyn Call_ListSearch,
+ folder: String,
+ bound: Option<Bound>,
+ direction: ListSearch_Args_direction,
+ limit: i64,
+ sort: Sort,
+ search: Option<String>,
+ ) -> varlink::Result<()> {
+ list_search(self, call, folder, bound, direction, limit, sort, search)
}
fn r#move(
@@ -113,7 +124,7 @@ impl VarlinkInterface for MailStorage {
folder: String,
pattern: String,
) -> varlink::Result<()> {
- search(self, call, folder, pattern)
+ todo!()
}
fn show(&self, call: &mut dyn Call_Show, folder: String, mid: String) -> varlink::Result<()> {