#1098504 dovecot: Unnecessary 500ms delay on message notification

Package:
dovecot-auth-lua
Source:
dovecot-auth-lua
Description:
secure POP3/IMAP server - Lua authentication plugin
Submitter:
Daniel Kahn Gillmor
Date:
2025-02-21 15:03:03 UTC
Severity:
normal
Tags:
#1098504#5
Date:
2025-02-21 15:00:37 UTC
From:
To:
Dear Maintainer,

dovecot deliberately delays all NOTIFY and IDLE by 500ms.  It's not
clear why it does that.  These delays make it challenging to use dovecot
for a low-latency messaging service.

Alex (in Cc here) authored a simple patch [0] which is in use by a large
number of dovecot servers today, those offering "chatmail" services [1].

[0] https://github.com/dovecot/core/pull/216
[1] https://github.com/chatmail/chatmail

There has not been any concrete pushback that i've seen.  It looks to me
like mostly inertia.

i recommend applying the patch in debian experimental at least, to get
wider testing of the speedup.  I've opened this MR in salsa for it:

https://salsa.debian.org/debian/dovecot/-/merge_requests/44

the relevant patch for the debian packaging is also attached to this
e-mail.

Thanks for maintaining dovecot in debian!