accounts: autoload Sent folders automatically

jmap-eventsource
Manos Pitsidianakis 4 years ago
parent d4e347289c
commit eb36034740
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -648,7 +648,8 @@ impl Account {
}
mailbox_entries.entry(*h).and_modify(|entry| {
if entry.conf.mailbox_conf.autoload
|| entry.ref_mailbox.special_usage() == SpecialUsageMailbox::Inbox
|| (entry.ref_mailbox.special_usage() == SpecialUsageMailbox::Inbox
|| entry.ref_mailbox.special_usage() == SpecialUsageMailbox::Sent)
{
let total = entry.ref_mailbox.count().ok().unwrap_or((0, 0)).1;
entry.status = MailboxStatus::Parsing(0, total);

Loading…
Cancel
Save