On Fri, 1 Jun 2007, 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?
Mike
In following you don't need to bother procmail with
times and save the TRAP:
1> From the command line:
mkfif /var/log/FIFOPROCMAILLOG
2> In /etc/syslog.conf
local4.* /var/log/proclog
(TAB not spaces)
3> A shell script runs from boot.
while true
do
cat /var/log/FIFOPROCMAILLOG | logger -i -p local4.debug
done
4> In /etc/procmailrc:
LOGFILE=/var/log/FIFOPROCMAILLOG
Now, you have log in syslog format where some filters know
annalize and parse.
Bye,
Udi
____________________________________________________________
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