IMAPx: Ignore 'Permission denied' error on refresh
For my work email, we have a shared imap folder where everyone can put suspected spam into, but only system administrators can read. If I subscribe to this folder, I get an error message displayed periodically, or whenever I select the shared folder:
Failed to refresh folder “gabriel.pannwitz@kdab.com : user/<username redacted>/<folder name redacted>”.
The reported error was “Error running STATUS: Permission denied”.
We use Cyrus IMAPD as our IMAP server, and have permissions on the offending folder set to lsip
. ( Documented here ) A normal folder that I have all permissions to has permissions lrswipkxtecda
.
When I run CAMEL_DEBUG=imapx:io evolution
, wait for evolution to idle, and then select the offending folder, I get the following output:
[imapx:A] I/O: '+ idling'
[imapx:A] I/O: ''
[imapx:A] I/O: 'DONE'
[imapx:A] I/O: ''
[imapx:A] I/O: ''
[imapx:A] I/O: 'DONE'
[imapx:A] I/O: ''
[imapx:A] I/O: 'A00942 OK Completed'
[imapx:A] I/O: 'A00943 STATUS user/<username redacted>/<folder name redacted> (MESSAGES UNSEEN UIDVALIDITY UIDNEXT HIGHESTMODSEQ)'
[imapx:A] I/O: 'A00943 NO Permission denied'
[imapx:A] I/O: 'A00064 OK IDLE terminated (Success)'
[imapx:A] I/O: 'A00944 IDLE'
[imapx:A] I/O: '+ idling'
[imapx:A] I/O: ''
[imapx:A] I/O: 'DONE'
[imapx:A] I/O: ''
[imapx:A] I/O: 'A00053 OK Idle completed (56.966 + 56.966 + 56.965 secs).'
(evolution:259574): GLib-GIO-WARNING **: 06:53:52.917: Your application did not unregister from D-Bus before destruction. Consider using g_application_run().
[imapx:A] I/O: ''
[imapx:A] I/O: ''
[imapx:A] I/O: 'DONE'
[imapx:A] I/O: ''
[imapx:A] I/O: ''
[imapx:B] I/O: ''
[imapx:A] I/O: ''
[imapx:A] I/O: 'DONE'
[imapx:A] I/O: ''
[imapx:A] I/O: ''
[imapx:A] I/O: ''
Note that I closed evolution after it showed the error message and idled again.
I originally asked for help understanding this issue on a Discourse thread. Thanks to Milan an the help there!