Bug in IDLE implementation for virtual mailbox
Pali Rohár
pali.rohar at gmail.com
Mon Dec 17 10:44:56 EET 2018
On Sunday 16 December 2018 21:55:23 Timo Sirainen wrote:
> On 16 Dec 2018, at 21.26, Pali Rohár <pali.rohar at gmail.com> wrote:
> >
> > Hello!
> >
> > I found bug in Dovecot's IDLE implementation when virtual mailbox is in
> > use. IDLE does not notify about new emails when email appears in newly
> > created mailbox and IDLE was issued in virtual folder which matches "*"
> > wildcard and that mailbox was created after opening virtual mailbox.
>
> It actually has nothing to do with IDLE specifically. It's just that the virtual storage code doesn't try to look for new folders after the virtual mailbox is opened.
>
> > To get notifications, it is needed to re-open that "All" mailbox again.
>
> Right. I don't think this is going to be fixed anytime soon. Quite a lot of effort and it can be worked around.
How to workaround it? Imap clients uses either IDLE or STATUS or LIST
(with STATUS) commands for checking if there is a new messages.
But none of these commands reports existence of new message until that
virtual folder is re-opened.
--
Pali Rohár
pali.rohar at gmail.com
More information about the dovecot
mailing list