The mail isn't on NFS, so I don't think that’s the problem. Probably related to my setup, because I use the imapc proxy settings:
mail_location = imapc:~/imapc imapc_host = 192.168.1.2 imapc_port = 143 passdb { driver = imap args = host=192.168.1.2 port=143 default_fields = userdb_imapc_user=%u userdb_imapc_password=%w } userdb { driver = prefetch } The subscribe commands, when directly executed to the proxied IMAP server work as expected. Output of my test: 18:01.48 > IMFE1 LOGIN "username" "password" 18:01.72 < * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE 18:01.72 < IMFE1 OK Logged in 18:01.72 > IMFE2 LIST "" "" 18:01.72 < * LIST (\Noselect) "/" "" 18:01.72 < IMFE2 OK List completed (0.000 + 0.000 secs). 18:01.72 > IMFE3 CREATE subway 18:01.76 < IMFE3 OK Create completed (0.000 + 0.000 + 0.041 secs). 18:01.76 > IMFE4 LSUB "" * 18:01.81 < * LSUB () "/" INBOX 18:01.81 < * LSUB () "/" Outbox 18:01.81 < * LSUB () "/" "Deleted Items" 18:01.81 < * LSUB () "/" "Sent Items" 18:01.81 < * LSUB () "/" Drafts 18:01.81 < * LSUB () "/" "Junk E-mail" 18:01.81 < IMFE4 OK Lsub completed (0.000 + 0.000 + 0.049 secs). 18:01.81 > IMFE5 SUBSCRIBE subway 18:01.88 < IMFE5 OK Subscribe completed (0.000 + 0.000 + 0.072 secs). 18:01.88 > IMFE6 LSUB "" * 18:01.88 < * LSUB () "/" INBOX 18:01.88 < * LSUB () "/" Outbox 18:01.88 < * LSUB () "/" "Deleted Items" 18:01.88 < * LSUB () "/" "Sent Items" 18:01.88 < * LSUB () "/" Drafts 18:01.88 < * LSUB () "/" "Junk E-mail" 18:01.88 < IMFE6 OK Lsub completed (0.000 + 0.000 secs). John -----Original Message----- From: dovecot [mailto:dovecot-boun...@dovecot.org] On Behalf Of Timo Sirainen Sent: Thursday, 27 October, 2016 12:07 To: Dovecot Mailing List <dovecot@dovecot.org> Cc: John van der Kamp <jk...@amazon.nl> Subject: Re: Subscription not immediately reflected > On 27 Oct 2016, at 12:55, Timo Sirainen <t...@iki.fi> wrote: > > I can't reproduce this. Can you send your doveconf -n output and also an > example IMAP session showing what goes wrong? I tested with Maildir and > mdbox, and with and without mailbox_list_index=yes: > > x lsub "" * > * LSUB () "/" INBOX > x OK Lsub completed (0.000 + 0.000 secs). > x subscribe Trash > x OK Subscribe completed (0.000 + 0.000 secs). > x lsub "" * > * LSUB () "/" INBOX > * LSUB (\Trash) "/" Trash > x OK Lsub completed (0.000 + 0.000 secs). Although you could try if the attached patch happens to help? I think you'd then have to be using NFS or some other remote storage where time is >1 seconds different from Dovecot server's time. > >> On 26 Oct 2016, at 17:52, John van der Kamp <jk...@amazon.nl> wrote: >> >> I was able to find some time to debug this more, and I found the change that >> breaks it was introduced in 2.2.25: >> If I revert 18856082d632ac60996637547098688148826b5a from release-2.2.25 >> branch, the test works again. >> >> John >> >> -----Original Message----- >> From: dovecot [mailto:dovecot-boun...@dovecot.org] On Behalf Of John van der >> Kamp >> Sent: Friday, 7 October, 2016 18:00 >> To: dovecot@dovecot.org >> Subject: Subscription not immediately reflected >> >> Hello, >> >> >> I noticed that somewhere between 2.2.22 and 2.2.25 the workings of >> subscriptions seem to have changed. >> >> In version 2.2.25, when a client subscribes to a folder, and then does an >> LSUB command, it will not see that subscribed folder. >> >> If you retry the LSUB command, the change is there. >> >> Same with unsubscribes. >> >> In version 2.2.22 I did not see this weird behavior. >> >> >> John >>