RE: extract message-id's from logfile

2007-03-23 Thread Bowie Bailey
Starckjohann, Ove wrote: > Hi! > > bit offtopic, but maybe it's easy and someone is able to drop me the > *magic* snippet of code: > > My logile looks like: > > Mar 23 10:15:55 admin05 spamd[6084]: spamd: result: Y 5 - > AWL,BAYES_00,DCC_CHECK,DIGEST_MULTIPLE,HTML_MESSAGE,LOGINHASH2,MIME_HTML >

Re: extract message-id's from logfile

2007-03-23 Thread Mark Samples
PERL: #!/usr/bin/perl while() { if(/mid=<(.*)>/) { print "$1\n"; } } cat spamd.log | will give you all of your 'mid' (message ids) from the spamd.log file (or whatever you call you spam log file for SA). Starckjohann, Ove wrote: Hi! bit offtopic, but maybe it's easy and some

extract message-id's from logfile

2007-03-23 Thread Starckjohann, Ove
Hi! bit offtopic, but maybe it's easy and someone is able to drop me the *magic* snippet of code: My logile looks like: Mar 23 10:15:55 admin05 spamd[6084]: spamd: result: Y 5 - AWL,BAYES_00,DCC_CHECK,DIGEST_MULTIPLE,HTML_MESSAGE,LOGINHASH2,MIME_HTML _ONLY,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_