]> mj.ucw.cz Git - checkmail.git/commitdiff
When debug_mode > 1, log all parsed messages
authorMartin Mares <mj@ucw.cz>
Wed, 4 Jul 2012 16:53:17 +0000 (18:53 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 4 Jul 2012 16:53:17 +0000 (18:53 +0200)
cm.c

diff --git a/cm.c b/cm.c
index e1ed5029980d318d1b8f727456ab0a3339faf38b..e7b2e63cf34c71777d74894c8839ab70c3177b0d 100644 (file)
--- a/cm.c
+++ b/cm.c
@@ -505,6 +505,8 @@ scan_mbox(struct mbox *b, struct stat *st)
        b->new++;
       if (flagged)
        b->flagged++;
+      if (debug_mode > 1)
+       debug("new=%d flagged=%d sender=<%s> subject=<%s>\n", new, flagged, sender, subject);
       if (new || (flagged && !b->snippet_is_new))
        {
          b->snippet_is_new = new;