RE: [SAtalk] stats script, by (fairly) popular demand - off-topic question

2003-11-07 Thread ian douglas
> my @otherstuff = sort { > (my $numa) = ($a =~ m/\.(\d+)\./); > (my $numb) = ($b =~ m/\.(\d+)\./); > $numa <=> $numb || $a cmp $b > } @stuff; you rock, i owe ya a beer ;o) -id --- This SF.Net email sponsored by: Apac

RE: [SAtalk] stats script, by (fairly) popular demand - off-topic question

2003-11-07 Thread Chris Thielen
#!/usr/bin/perl my @stuff = ( 'maillog.11.gz', 'maillog.2.gz', 'maillog.10.gz', 'maillog', 'maillog.1.gz', 'maillog.3.gz', ); my @otherstuff = sort { (my $numa) = ($a =~ m/\.(\d+)\./); (my $numb) = ($b =~ m/\.(\d+)\./); $numa

RE: [SAtalk] stats script, by (fairly) popular demand - off-topic question

2003-11-07 Thread ian douglas
My new mailstats.pl script (matt's script with a few tweaks) is giving me some grief. My maillog files are named: maillog (for today) maillog.1.gz maillog.2.gz etc maillog.10.gz etc When Matt's script does the 'sort', it sorts it as: maillog maillog.1.gz maillog.10.gz maillog.11.gz maillog.2.gz

Re: [SAtalk] stats script, by (fairly) popular demand

2003-11-01 Thread AltGrendel
'mikea' wrote: There are probably some adjustments to be made. Use at your own risk. Enjoy. If you improve on it, please make the improvements available to the list. I've posted this on the Wiki at http://www.exit0.us/index.php/MikesStatScript

Re: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread 'mikea'
On Thu, Oct 30, 2003 at 02:45:39PM -0800, Kenneth Porter wrote: > --On Thursday, October 30, 2003 2:26 PM -0600 'mikea' <[EMAIL PROTECTED]> > wrote: > > > my $s = grep /is spam/, @wholefile; # spam > > This doesn't work with my copy of SA, which is using spamc/spamd. Inste

RE: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Ian Douglas
> But the line that contains "is spam" doesn't seem to increment the counter. > /shrug still looking at that myself. ... because I upgraded to SA 2.60 this week and set MailScanner to log spam messages via syslog, which wasn't in place for last week. (slapping self upside the head) For this week

Re: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Kenneth Porter
--On Thursday, October 30, 2003 2:26 PM -0600 'mikea' <[EMAIL PROTECTED]> wrote: > my $s = grep /is spam/, @wholefile; # spam This doesn't work with my copy of SA, which is using spamc/spamd. Instead of "is spam", I get "identified spam". --

Re: [SAtalk] stats script

2003-10-30 Thread Zionsville Autosport
i've got a couple of these scripts, but they don't seem to parse my log files. i'm running exim 4.22 with SA 2.55. exim logs to mainlog in /var/log/exim and SA logs to maillog in /var/log. i'm assuming there's a problem since my setup doesn't log the results in one file. i've cancatated the two

RE: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Ian Douglas
> You will need to adjust the search string to match your mail logs. Here's my maillog snippet: Oct 30 14:12:40 ns1 MailScanner[3201]: New Batch: Scanning 1 messages, 4214 bytes Oct 30 14:12:40 ns1 MailScanner[3201]: Archived message h9UMAPR07828 to mbox file /var/spool/MailScanner/archive Oct

Re: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Ray Dzek
sday, October 30, 2003 1:18 PM Subject: [SAtalk] stats script, by (fairly) popular demand > Interesting...once I changed to the Debian mail.log.#.gz filename spec, > I got the following: > Mails spamassassin rejected scanner total mails > Total says 'spa

RE: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Ian Douglas
> > my $s = grep /is spam/, @wholefile; # spam My log does have "is spam" in the log yet the script is returning 0's for me as well. Trying to hunt it down. I've even tried other strings from the MailScanner-generated logs from /var/log/maillog to no avail. -id ---

RE: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Jason Staudenmayer
'mikea' scribbled on Thursday, October 30, 2003 3:26 PM: > There are probably some adjustments to be made. > > Use at your own risk. Enjoy. > > If you improve on it, please make the improvements available > to the list. > > Mike Andrews > [EMAIL PROTECTED] > Tired old

[SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Greg Webster
Interesting...once I changed to the Debian mail.log.#.gz filename spec, I got the following: Mails spamassassin rejected scanner total mails Total says 'spam' by rulesetsays virusundelivered Oct 12 35052 0 ( 0.00%)0 ( 0.00%)0 ( 0.00%) 0 ( 0.00%)

RE: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Jackson, Jeff
> Date: Thu, 30 Oct 2003 14:26:14 -0600 > From: "'mikea'" <[EMAIL PROTECTED]> > To: SA Mailing list <[EMAIL PROTECTED]> > Subject: [SAtalk] stats script, by (fairly) popular demand > > There are probably some adjustments to be made. > >

RE: [SAtalk] stats script

2003-10-30 Thread Jason Staudenmayer
age- >> From: mikea >> Sent: Thursday, October 30, 2003 2:13 PM >> To: SA Mailing list >> Subject: [SAtalk] stats script >> >> >> I have, from time to time, published stats generated by my >> mailstats2.pl Perl script. Pretty much every time

FW: [SAtalk] stats script

2003-10-30 Thread Larry Gilson
http://www.iscomp.com/files/scripts/mail/ -Original Message- From: 'mikea' Sent: Thursday, October 30, 2003 2:58 PM To: Larry Gilson Subject: Re: [SAtalk] stats script On Thu, Oct 30, 2003 at 02:51:49PM -0500, Larry Gilson wrote: > Everyone has an opinion so since you a

RE: [SAtalk] stats script

2003-10-30 Thread Jill U'Ren
Ditto -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mark Emerle Sent: Thursday, October 30, 2003 12:15 PM To: mikea; SA Mailing list Subject: RE: [SAtalk] stats script Please post, I wrote my own but would like to see if you included something in

[SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread 'mikea'
There are probably some adjustments to be made. Use at your own risk. Enjoy. If you improve on it, please make the improvements available to the list. Mike Andrews [EMAIL PROTECTED] Tired old sysadmin #!/usr/bin/perl # # program to produce total mail item / spam (%) / discarded (%) /

RE: [SAtalk] stats script

2003-10-30 Thread Mark Emerle
Please post, I wrote my own but would like to see if you included something in yours that could be useful -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of mikea Sent: Thursday, October 30, 2003 2:13 PM To: SA Mailing list Subject: [SAtalk] stats script I

RE: [SAtalk] stats script

2003-10-30 Thread Larry Gilson
Message- > From: mikea > Sent: Thursday, October 30, 2003 2:13 PM > To: SA Mailing list > Subject: [SAtalk] stats script > > > I have, from time to time, published stats generated by my > mailstats2.pl Perl script. Pretty much every time I get > mail remarking on how pret

[SAtalk] stats script

2003-10-30 Thread mikea
I have, from time to time, published stats generated by my mailstats2.pl Perl script. Pretty much every time I get mail remarking on how pretty the output is and asking for a copy. Since I can't put it up on the corporate webserver at work, I'll offer to post it if: 1) Anyone is interested, an