Skip to content
Snippets Groups Projects
  • Christoph Wurst's avatar
    23e3cc48
    Add a flag that indicates whether an inbox should be sync'ed · 23e3cc48
    Christoph Wurst authored
    
    The cron background sync can be expensive with accounts that have many
    mailboxes. As it turns out other clients like Thunderbird also don't
    look into *all* mailboxes to check for new email. Instead they only do
    that for INBOX by default and let the user pick more mailboxes if they
    wish. We should do the same.
    
    This adds a simple flag. Only the inbox and mailboxes that have this
    flag set will get a sync in background.
    
    Any other mailbox can still be used, but the sync only happens if the
    user has the mailbox open.
    
    This will bring down the load on instances with many accounts,
    especially if those have many mailboxes.
    
    Signed-off-by: default avatarChristoph Wurst <christoph@winzerhof-wurst.at>
    Add a flag that indicates whether an inbox should be sync'ed
    Christoph Wurst authored
    
    The cron background sync can be expensive with accounts that have many
    mailboxes. As it turns out other clients like Thunderbird also don't
    look into *all* mailboxes to check for new email. Instead they only do
    that for INBOX by default and let the user pick more mailboxes if they
    wish. We should do the same.
    
    This adds a simple flag. Only the inbox and mailboxes that have this
    flag set will get a sync in background.
    
    Any other mailbox can still be used, but the sync only happens if the
    user has the mailbox open.
    
    This will bring down the load on instances with many accounts,
    especially if those have many mailboxes.
    
    Signed-off-by: default avatarChristoph Wurst <christoph@winzerhof-wurst.at>