procmail
[Top] [All Lists]

Re: Highly improved version of mailstat

2002-11-29 05:23:36
On 29/11/02  3:37, parv wrote:
in message 
<20021128154331(_dot_)WHATTHEFUCK(_dot_)A28286(_at_)maxwerner(_dot_)dyndns(_dot_)org>,
wrote Max J. Werner thusly...

You can now filter by date.
...
The Script: http://maxwerner.dyndns.org/downloads/mailstat

when i did...

  # mailstat -s ../log/mail/procmail.log.old
  Argument "log" isn't numeric in subtraction (-) at mailstat line 124.
  Argument ".." isn't numeric in subtraction (-) at mailstat line 124.
  Argument "mail/procmail.log.old" isn't numeric in subroutine entry
  at mailstat line 124. 

  # mailstat -e ../log/mail/procmail.log.old
  Argument "log" isn't numeric in subtraction (-) at mailstat line 134.
  Argument ".." isn't numeric in subtraction (-) at mailstat line 134.
  Argument "mail/procmail.log.old" isn't numeric in subroutine entry
  at mailstat line 134. 


...why?  because an actual date is missing in some format?  but that
doesn't show up in "mailstat -h"...

Okay, sorry, I forgot to mention that the date filtering feature is
alpha yet (like mentioned in the script itself in the CHANGELOG
section). Error protection and such will be implemented in future
versions. This script is still under constant development.

  Usage: mailstat [OPTION]... [LOGFILE]
  Analyze a procmail-generated $LOGFILE and display
  a summary about the messages delivered to all folders.

    -t      terse display format
    -s      date filtering: this is the start date
    -e      date filtering: this is the end date
    -h      print this help


...only that "-s" is "start date" & "-e" "end date".  well, if an
argument is expected w/ an option, program should abort if no such
argument is given, unlike above.  adding features to software
doesn't come cheap!

Fixed the -h output. Error protection is on my TODO.

(i would have sent this to max privately, but he had set followup to
procmail list only.  so be it.)

Shouldn't we discuss that here? If not, tell me, please.

Max
-- 
 ____________________________________________________________________ 
|                Registered Linux User No. 194145                    |
|                be counted: http://counter.li.org                   |
|  see http://www.maxwerner.dyndns.org/killfile.php for my killfile  |

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail