On 1-Jun-2007, at 07:44, Mike wrote:
In my procmail log for each message I have a subject,
the number of lines for the message, and which folder
the message was placed. Is there a switch to turn on
a timestamp for each message/action?
Not exactly, but there are ways around it. For example, instead of
LOGABSTRACT, I use:
DATE=`date '+%d-%b-%Y'`
LONGDATE=`date "+%y-%b-%d %I:%M:%S %z"`
MYLOGFILE="pm-$DATE.log"
LOGABSTRACT=no
TRAP='formail -l "$LASTFOLDER" ;echo " Spam: $SPAM
Deliverd: $LONGDATE
MATCH: $MATCH
";'
when a message is delivered, the TRAP gets output to the logfile
This gives me:
From owner-postfix-users(_at_)postfix(_dot_)org Fri Jun 1 13:17:55 2007
Subject: Re: Reject unknown Sender address
Folder: /home/kremels/Mail/postfix-users/2007-06.postfix-
users 4638
Spam:
Deliverd: 07-Jun-01 01:17:55 -0600
MATCH: postfix-users(_at_)postfix(_dot_)org
as you can see, Delivered is my timestamp and, in this case, $SPAM
was empty.
--
Bishops move diagonally. That's why they often turn up where the
kings don't expect them to be.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail