IMAP daemon doesn't expose new mail to thunderbird on first run
The steps to reproduce are the following:
- Create an account with mail enabled.
- Login, wait for mail to start
- Open thunderbird, configure it to use the local imap/smtp
- Mail your leap account from somewhere else.
- Wait enough time for the mail to get through (don't close the client or thunderbird)
- You'll see that the client displays "1 unread mail" while thunderbird doesn't notice it, even if you press "receive mail" in thunderbird.
(from redmine: created on 2013-08-30, closed on 2013-10-02, relates #7993 (closed))