]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
expire: Added more debugging with mail_debug=yes
authorTimo Sirainen <tss@iki.fi>
Sun, 6 Mar 2011 22:57:08 +0000 (00:57 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 6 Mar 2011 22:57:08 +0000 (00:57 +0200)
src/plugins/expire/expire-plugin.c

index 238c7f00e3112babf6f35fde0de726566bf7a67a..b11699690957b64d19792540d0871b5f86f9615f 100644 (file)
@@ -128,6 +128,11 @@ expire_mailbox_transaction_commit(struct mailbox_transaction_context *t,
        if (xt->first_expunged) {
                /* first mail expunged. dict needs updating. */
                first_nonexpunged_timestamp(t, &new_stamp);
+               if (user->mail_debug) {
+                       i_debug("expire: Expunging first message in %s, "
+                               "updating timestamp to %ld",
+                               box->vname, (long)new_stamp);
+               }
                update_dict = TRUE;
        }
 
@@ -167,6 +172,11 @@ expire_mailbox_transaction_commit(struct mailbox_transaction_context *t,
                        } else {
                                /* already exists */
                        }
+                       if (user->mail_debug && update_dict) {
+                               i_debug("expire: Saving first message to %s, "
+                                       "updating timestamp to %ld",
+                                       box->vname, (long)new_stamp);
+                       }
                }
 
                if (update_dict) {