]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: Send mail_opened event only once per mail
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 26 Sep 2025 11:39:51 +0000 (14:39 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Mon, 29 Sep 2025 16:49:57 +0000 (16:49 +0000)
commitdbe7cc3fd19720bffcdc8a2436704b0d53634ef6
treec707b0a8115a43c7228f53132e350f7c8d82ebce
parentc82dc50aeb07cab77e6b807feb9c848f4e2950cc
lib-storage: Send mail_opened event only once per mail

The first time mail is opened it is read into cache, while the following
reads are likely to be using the cache. Sending a mail_opened event for the
following reads just confuses statistics.
src/lib-storage/index/index-mail.c
src/lib-storage/mail-storage-private.h
src/lib-storage/mail.c