]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: mail_expunge() - Move sending event inside data stack frame
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 27 Dec 2022 11:20:48 +0000 (06:20 -0500)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 11 Jan 2023 21:50:37 +0000 (23:50 +0200)
Each call was using a bit more data stack due to this.

src/lib-storage/mail.c

index b3991d6f65c575ae4a60d78026a39c2be9c71585..4a532a2edecf4a5c95be9d235324342ce901cf1a 100644 (file)
@@ -491,8 +491,8 @@ void mail_expunge(struct mail *mail)
 
        T_BEGIN {
                p->v.expunge(mail);
+               mail_expunge_requested_event(mail);
        } T_END;
-       mail_expunge_requested_event(mail);
 }
 
 void mail_autoexpunge(struct mail *mail)