]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mail-log: Differentiate autoexpunges from expunges
authorAki Tuomi <aki.tuomi@dovecot.fi>
Thu, 23 Mar 2017 12:09:01 +0000 (14:09 +0200)
committerGitLab <gitlab@git.dovecot.net>
Mon, 27 Mar 2017 15:25:10 +0000 (18:25 +0300)
src/plugins/mail-log/mail-log-plugin.c

index bc4e87a79d3ef7230c298cecbad84dd447f5f6d2..73766268a9705c54a7c8667e328174a21db218cf 100644 (file)
@@ -390,9 +390,10 @@ static void mail_log_mail_expunge(void *txn, struct mail *mail)
 {
        struct mail_log_mail_txn_context *ctx =
                (struct mail_log_mail_txn_context *)txn;
-       
+       struct mail_private *p = (struct mail_private*)mail;
+
        mail_log_append_mail_message(ctx, mail, MAIL_LOG_EVENT_EXPUNGE,
-                                    "expunge");
+                                    p->autoexpunged ? "autoexpunge" : "expunge");
 }
 
 static void mail_log_mail_update_flags(void *txn, struct mail *mail,