procmail
[Top] [All Lists]

Procmail log intelligibility

2002-05-28 23:57:08
Hi,

   In the absence of a blank line delimiting procmail log records,
is there an easy way to identify email boundaries?

   My .procmailrc has only these assignments;

DEFAULT=/var/spool/mail/erik
MAILDIR=/home/erik/mail/in           # Do not use tilde in .procmailrc !!!
LOGFILE=$MAILDIR/log                 # (man procmail)
COMSAT=off
OR=2147483647^0                      # Max score => immediate success. i.e. OR
VERBOSE=on
LOGABSTRACT=all


   and after staring at a few procmail logs, I had formed the preliminary
conclusion that each record starts with a "procmail: [nnnn]" line, and
ends with a " Folder: " or "procmail: Executing " line, _if_ there is no
overlap due to simultaneous email processing. (Still trying to acquire
confidence that each record is contiguous)

   E.g. there is a repetition of the"procmail: [1822]" line half
way through the log sequence for that email:


procmail: Score:       1       1 "Content-Type:.*text/html"
procmail: Locking "junk_u.lock"
procmail: Assigning "LASTFOLDER=junk_u"
procmail: Opening "junk_u"
procmail: Acquiring kernel-lock
procmail: Unlocking "junk_u.lock"
From hghpro(_at_)Flashmail(_dot_)com  Wed May 29 12:53:20 2002
 Subject: erik,Ultimate HGH: Make you look and feel 20 YEARS YOUNGER!
  Folder: junk_u                       5035
procmail: [1822] Wed May 29 13:33:20 2002
procmail: Assigning "LOGABSTRACT=all"
procmail: No match on "^To: undisclosed-recipients:"
procmail: No match on 
"^(From|Reply-To|Return-Path|Received):.+\.(ru|tw|kr|korea)\>"
procmail: No match on 
"^(From:|Reply-To:|Organization:).*(simply-spiritual|ExcellentConsultants|harddiskinfo)"
procmail: No match on "^Subject:.*(ADV:[  
A-Z0-9!(_at_)#$%^&*()-=+"~]*$|unsubscribe)"
procmail: No match on "SpamWarning"
procmail: Score:       0       0 "(creditor|debt|money|no fee|credit card|gift 
for you|stock trade|Opt-In Offer|Work from your home|porn|feedback form|you won 
$[0-9.]+)"
procmail: Score:       0       0 "(losing weight|join free|sex|Try it( out)?( 
for)? FREE)"
procmail: Score:       0       0 "(reply with ?remove?|remove as the 
subject|removelist)"
procmail: Score:       0       0 "(ks_c_5601-1987|charset=?euc-kr)"
procmail: Score:       0       0 "^^[    ]*<(\!DOCTYPE )?HTML"
procmail: Score:       0       0 "Content-Type:.*text/html"
procmail: No match on "^Subject: Cron <[a-z(_at_)]*> 
/usr/local/sbin/(dumpdevs|backup)"
procmail: Match on 
"..........................................................................."
procmail: Executing "fold,-s"
procmail: [1822] Wed May 29 13:33:21 2002
procmail: No match on "^Lines:"
procmail: No match on "^From procmail-admin"
procmail: Match on "^From net-snmp-users-admin"
procmail: Locking "/home/erik/mail/in/snmp_u.lock"
procmail: Executing " formail -a"Reply-To: 
net-snmp-users(_at_)lists(_dot_)sourceforge(_dot_)net" >> $MAILDIR/snmp_u"
procmail: [1829] Wed May 29 13:33:21 2002
<<<

   So much for theory number 1.

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