[imapfilter-devel]patch to print a clearer report

Heikki Lehvaslaiho heikki at ebi.ac.uk
Wed Nov 20 03:28:04 EET 2002


Hi,

I did some small changes to the standard output from imapfilter. The
principle is that most important information, the number of unseen 
messages is in the beginning of the line. I got rid of number of recent
messages and generally did not hunt for all the places one could format
better, but I am not claiming my set up to be perfect. I hope it
provided stimulus for further improvements.

Thanks for a very useful program,

	-Heikki


--- response.c.ori      2002-11-19 23:34:27.000000000 +0000
+++ response.c  2002-11-20 00:59:42.000000000 +0000
@@ -201,11 +201,11 @@
        unseen = strtoul(c, NULL, 10);
     }
     if (!exist) {
-       info("No messages in mailbox \"%s\".\n", mbox);
+       info("%1sNo messages in \"%s\".\n", "", mbox);
        return -2;
     }
-    info("%d message%s, %d recent, %d unseen, in mailbox \"%s\".\n",
exist,
-        plural(exist), recent, unseen, mbox);
+    info("%5d unseen in \"%15s\" with %5d message%s.\n",
+        unseen, mbox, exist,  plural(exist) );

     return r;
 }



-- 
______ _/      _/_____________________________________________________
      _/      _/                      http://www.ebi.ac.uk/mutations/
     _/  _/  _/  Heikki Lehvaslaiho          heikki at ebi.ac.uk
    _/_/_/_/_/  EMBL Outstation, European Bioinformatics Institute
   _/  _/  _/  Wellcome Trust Genome Campus, Hinxton
  _/  _/  _/  Cambs. CB10 1SD, United Kingdom
     _/      Phone: +44 (0)1223 494 644   FAX: +44 (0)1223 494 468
___ _/_/_/_/_/________________________________________________________




More information about the Imapfilter-devel mailing list