changeset 21832:a20bb72327c7

mail-log: Differentiate autoexpunges from expunges
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Thu, 23 Mar 2017 14:09:01 +0200
parents a9b10b0a6bd3
children ed5cbeee2ec7
files src/plugins/mail-log/mail-log-plugin.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/mail-log/mail-log-plugin.c	Thu Mar 23 14:08:30 2017 +0200
+++ b/src/plugins/mail-log/mail-log-plugin.c	Thu Mar 23 14:09:01 2017 +0200
@@ -390,9 +390,10 @@
 {
 	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,