[Dovecot] 2.1: imapc SUBSCRIBE problem
On Fri, 09 Sep 2011, Lutz Preßler wrote:
LIST is now working correctly in my setup, but SUBSCRIBE ist not. With subscriptions=no, as written (but same behaviour with subscriptions=yes), SUBSCRIBE INBOX.gmail.INBOX (or others) yields 0 NO [SERVERBUG] Internal error occurred. Refer to server log for more information. [2011-09-09 16:39:40] logging (with mail_debug=yes) only Sep 9 16:39:40 host dovecot: imap(1143, user): Error: stat((null)) failed: Bad address After putting (with subscriptions=no) an entry manually into the root subscriptions file, everything including UNSUBSCRIBE works fine.
Lutz
On Sun, 2011-09-11 at 21:50 +0200, Lutz Preßler wrote:
On Fri, 09 Sep 2011, Lutz Preßler wrote:
LIST is now working correctly in my setup, but SUBSCRIBE ist not. With subscriptions=no, as written (but same behaviour with subscriptions=yes), SUBSCRIBE INBOX.gmail.INBOX (or others) yields 0 NO [SERVERBUG] Internal error occurred. Refer to server log for more information. [2011-09-09 16:39:40] logging (with mail_debug=yes) only Sep 9 16:39:40 host dovecot: imap(1143, user): Error: stat((null)) failed: Bad address After putting (with subscriptions=no) an entry manually into the root subscriptions file, everything including UNSUBSCRIBE works fine.
Yeah, but then remote subscriptions don't work. I think the imapc subscription problems and namespace prefix problems are now fixed in hg.
On Mon, 12 Sep 2011, Timo Sirainen wrote:
On Sun, 2011-09-11 at 21:50 +0200, Lutz Preßler wrote:
On Fri, 09 Sep 2011, Lutz Preßler wrote:
LIST is now working correctly in my setup, but SUBSCRIBE ist not. With subscriptions=no, as written (but same behaviour with subscriptions=yes), SUBSCRIBE INBOX.gmail.INBOX (or others) yields 0 NO [SERVERBUG] Internal error occurred. Refer to server log for more information. [2011-09-09 16:39:40] logging (with mail_debug=yes) only Sep 9 16:39:40 host dovecot: imap(1143, user): Error: stat((null)) failed: Bad address After putting (with subscriptions=no) an entry manually into the root subscriptions file, everything including UNSUBSCRIBE works fine.
Yeah, but then remote subscriptions don't work. I think the imapc subscription problems and namespace prefix problems are now fixed in hg. Not really. No error on SUBSCRIBE anymore, but it does not work permanently:
0 lsub "" "*"
- LSUB () "." "INBOX.test.test2" [... further entries ...] 0 OK Lsub completed. 0 subscribe "INBOX.gmail.[Gmail].Spam" 0 OK Subscribe completed. <--- now subscriptions file includes "gmail.[Gmail]/Spam" 0 lsub "" "*"
- LSUB () "." "INBOX.test.test2" [... further entries, but NOT INBOX.gmail.[Gmail].Spam ...] 0 OK Lsub completed. <--- now the "gmail.[Gmail]/Spam" line is gone from subscriptions file again!
The same happens with INBOX.gmail.INBOX, so it's not the "[]" characters. I have to test with debugging turned on later.
Lutz
On 12.9.2011, at 21.15, Lutz Preßler wrote:
Yeah, but then remote subscriptions don't work. I think the imapc subscription problems and namespace prefix problems are now fixed in hg. Not really. No error on SUBSCRIBE anymore, but it does not work permanently:
0 lsub "" "*"
- LSUB () "." "INBOX.test.test2" [... further entries ...] 0 OK Lsub completed. 0 subscribe "INBOX.gmail.[Gmail].Spam" 0 OK Subscribe completed. <--- now subscriptions file includes "gmail.[Gmail]/Spam"
There shouldn't be any changes to subscriptions file! The subscriptions are stored on remote IMAP server. What exactly have you set to your namespaces now?
On Mo, 12 Sep 2011, Timo Sirainen wrote:
On 12.9.2011, at 21.15, Lutz Preßler wrote:
Not really. No error on SUBSCRIBE anymore, but it does not work permanently:
0 lsub "" "*"
- LSUB () "." "INBOX.test.test2" [... further entries ...] 0 OK Lsub completed. 0 subscribe "INBOX.gmail.[Gmail].Spam" 0 OK Subscribe completed. <--- now subscriptions file includes "gmail.[Gmail]/Spam" The problem seems to be the different separators (I missed the "/" earlier). First level mailboxes on gmail do work (I mixed it up... INBOX.gmail.INBOX is fine, as is INBOX.gmail.test).
There shouldn't be any changes to subscriptions file! The subscriptions are stored on remote IMAP server. Why? With subscriptions=no I would expect the local subscriptions file beeing used (and this is useful!) What exactly have you set to your namespaces now? The imapc namespace has subscriptions=no. I also tested subscriptions=yes now. That works as expected. (Some glitch with "INBOX.gmail.[Gmail]" not beeing UNSUBSCRIBEbable when \Noselect, but that's probably a Gmail IMAP problem).
Lutz
On Tue, 2011-09-13 at 00:10 +0200, Lutz Preßler wrote:
On Mo, 12 Sep 2011, Timo Sirainen wrote:
On 12.9.2011, at 21.15, Lutz Preßler wrote:
Not really. No error on SUBSCRIBE anymore, but it does not work permanently:
0 lsub "" "*"
- LSUB () "." "INBOX.test.test2" [... further entries ...] 0 OK Lsub completed. 0 subscribe "INBOX.gmail.[Gmail].Spam" 0 OK Subscribe completed. <--- now subscriptions file includes "gmail.[Gmail]/Spam" The problem seems to be the different separators (I missed the "/" earlier). First level mailboxes on gmail do work (I mixed it up... INBOX.gmail.INBOX is fine, as is INBOX.gmail.test).
Fixed: http://hg.dovecot.org/dovecot-2.1/rev/f3eb6cc4b627
I also tested subscriptions=yes now. That works as expected. (Some glitch with "INBOX.gmail.[Gmail]" not beeing UNSUBSCRIBEbable when \Noselect, but that's probably a Gmail IMAP problem).
participants (2)
-
Lutz Preßler
-
Timo Sirainen