Ignore boxes when they are not present in the IMAP server
Problem
With a config like:
{
...
"boxes": [
"INBOX",
"Drafts"
],
...
}
The program exits with FATA[0001] cannot select mailbox Drafts, reason: Unknown Mailbox: Drafts (Failure)
, on some of my accounts (Because Drafts is [Gmail]/Drafts).
Reason why I think it's an issue
I manage my configuration with chezmoi
, and have a shared template for imapnotify, so managing differences in the boxes would be a mayor inconvenience.
Proposed solution
Either through a config or commandline option you could treat Unknown Mailbox
as a warning and not an error (or just by default).
Of course if all mailboxes are unknown it should be an error.