2912eac52610bf9463e48f320a966d0b0c51bed0 |
|
13-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Fix mailbox list notification assert-crash when mailbox is deleted
Reproduced with if IMAP NOTIFY is used for non-selected mailboxes without
MailboxName being specified. Another session then does changes to a
mailbox and immediately deletes it, which causes the crash.
Fixes:
Panic: file mailbox-list-index-notify.c: line 751: unreached |
182724707b7f73a181716d439863fb756d8ad03d |
|
13-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Avoid unnecessary stat()s in mailbox list index notifications
If mailbox list gets a notification there's no need to stat() the INBOX, and
vice versa. Also if the notification was already seen and a callback timeout
set, there's no need to keep stat()ing. |
5ddc694e19875c8e3ad7db77807d6ae4360acdca |
|
13-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Make sure mailbox list notification flush sees latest changes.
This is mainly useful with imaptest test scripts to make sure they're seeing
the changes done by the other session, without assuming that inotify will
always notify about the change before NOOP is run (it doesn't).
Do this only if mailbox_idle_check_interval>0, so it's not run when periodic
stat()s are wanted to be avoided. |
921a1eac5bd1375b86f5fc423257513c9e94c3cd |
|
05-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Remove INBOX notification checks if mailbox events aren't requested
Nothing would be done with the results of those checks.
Note that MAILBOX_LIST_NOTIFY_UIDVALIDITY can be handled using mailbox list
index, even for INBOX with mailbox_list_index_include_inbox=no. |