diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-12-11 00:15:36 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-12-11 00:15:36 +0200 |
commit | 6f76cd9acc45f1ef1c7eee224b530e5e34a91860 (patch) | |
tree | 5ddb16596c46bef7d2634bcf0db2acbf720f3af6 /ui/src/components | |
parent | bce97d71bb62c18f972720264a1840bafc62687d (diff) |
melib: add special_usage() method to BackendFolder
Eventually after loading potential usage values from configuration,
backends will be able to change the usage values themselves. IMAP and
JMAP have the ability to set Mailbox roles (IMAP needs LIST-SPECIAL
extension
Diffstat (limited to 'ui/src/components')
-rw-r--r-- | ui/src/components/mail/compose.rs | 10 | ||||
-rw-r--r-- | ui/src/components/mail/view.rs | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ui/src/components/mail/compose.rs b/ui/src/components/mail/compose.rs index 66f278b0..cbf137f4 100644 --- a/ui/src/components/mail/compose.rs +++ b/ui/src/components/mail/compose.rs @@ -574,7 +574,7 @@ impl Component for Composer { context, self.account_cursor, self.draft.clone(), - SpecialUseMailbox::Sent, + SpecialUsageMailbox::Sent, Flag::SEEN, ) { context @@ -584,7 +584,7 @@ impl Component for Composer { save_draft( self.draft.clone().finalise().unwrap().as_bytes(), context, - SpecialUseMailbox::Drafts, + SpecialUsageMailbox::Drafts, Flag::SEEN | Flag::DRAFT, self.account_cursor, ); @@ -633,7 +633,7 @@ impl Component for Composer { save_draft( self.draft.clone().finalise().unwrap().as_bytes(), context, - SpecialUseMailbox::Drafts, + SpecialUsageMailbox::Drafts, Flag::SEEN | Flag::DRAFT, self.account_cursor, ); @@ -1069,7 +1069,7 @@ pub fn send_draft( context: &mut Context, account_cursor: usize, mut draft: Draft, - folder_type: SpecialUseMailbox, + folder_type: SpecialUsageMailbox, flags: Flag, ) -> bool { use std::io::Write; @@ -1216,7 +1216,7 @@ pub fn send_draft( pub fn save_draft( bytes: &[u8], context: &mut Context, - folder_type: SpecialUseMailbox, + folder_type: SpecialUsageMailbox, flags: Flag, account_cursor: usize, ) { diff --git a/ui/src/components/mail/view.rs b/ui/src/components/mail/view.rs index 657c268a..27c2e52f 100644 --- a/ui/src/components/mail/view.rs +++ b/ui/src/components/mail/view.rs @@ -1200,7 +1200,7 @@ impl Component for MailView { unsafe { &mut *(unsafe_context) }, self.coordinates.0, draft, - SpecialUseMailbox::Sent, + SpecialUsageMailbox::Sent, Flag::SEEN, ); } |