]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: Remove most reason_code=mail:*
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 28 Dec 2021 07:37:42 +0000 (09:37 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 28 Dec 2021 07:51:05 +0000 (09:51 +0200)
commitf3c568e3cbc113920bc029e07e56619589c6a26d
treea98b4ce260b73c9c976d375c3acd0188850af546
parentac4d66e25e5f474c0924291e6ef4b7599b82f8b9
lib-storage: Remove most reason_code=mail:*

Event reasons create events internally. This is rather expensive if it's
done for operations that access all emails in a large folder, e.g. SORT.
The per-mail reason_codes also didn't seem to be hugely helpful, so best
to just remove them.

Some of the mail:* reasons were left where they are causing mail stream to
be opened anyway. In these cases the extra CPU used by event reasons is
relatively little.

Reverts ce517f8323fa4a60b230f29712b207139badb3f0
src/lib-storage/index/index-mail.c
src/lib-storage/mail.c