View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005769||SOGo||Backend Mail||public||2023-05-17 08:42||2023-05-17 08:42|
|Summary||0005769: SOGo messes up IMAP subscriptions when randomly fails to open folder|
I have a problem that SOGo randomly messes up my IMAP subscriptions - this then negatively affects other mail clients, because the folders "disappear" until manually subscribed again.
I enabled SOGo debug logging for requests and mail to track down what happens (see log in additional information). When I click on folders in the web interface at some random points SOGo fails to open the folder.
The problem appears to be-in the back-end. When the web-interface requests to open folder "INBOX.Foo.Bar" on the IMAP side SOGo tries to select folder "INBOXFooBar" which obviously fails due to the missing dots. But as a result of this failure SOGo then unsubscribes from "INBOX.Foo.Bar". I think the automatic unsubscribe isn't a good idea, but not the root cause here.
I have no idea why this happens - it seems to be totally random. When I try to open the same folder a second time it usually works, but then it's already unsubscribed.
This commit https://github.com/Alinto/sogo/commit/373ac51e62b8d50b9a8aa938c048dbf53bdbb992 sounds related, but obviously isn't helping in my case. I believe I first noticed the missing folder subscription after I upgraded SOGo from 5.4 to 5.8. There is no improvement with 5.8.2.
May 17 09:51:48 sogod : |SOGo| starting method 'POST' on uri '/SOGofirstname.lastname@example.org/Mail/0/folderINBOX/folderFoo/folderBar/view'
S[0x561e30b7cd00]: OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN] Dovecot (Debian) ready.
|Tags||No tags attached.|