first of all, i'm new to procmail and am loving it.
i have a question regarding the use of LOG= in recipes. i have procmail's
log pointed to ~/.procmail/log. i'm using includes in my .procmailrc and
have one called rc.spamassassin. here is a receipe from it:
:0
* ^X-Spam-Status: Yes
{
LOG = "rc.spamassassin "
:0
/dev/null
}
this gives me log entries like this:
rc.spamassassin From MAILER-DAEMON Fri Jan 6 14:19:23 2006
Subject: Undelivered Mail Returned to Sender
Folder: /dev/null
that's nice so i can see which recipe is processing a message. one thing
i'd like to do is have it add an end of line so that it looks like this:
rc.spamassassin
From MAILER-DAEMON Fri Jan 6 14:19:23 2006
Subject: Undelivered Mail Returned to Sender
Folder: /dev/null
my shell is set to /bin/sh in my .procmailrc and i'm running on FreeBSD if
that matters at all. how can i get put in a newline after the "tag" if
that's the right thing to call it?
also, this seems to mess up mailstat. i would expect something like this:
Total Number Folder
----- ------ ------
5117432 901 /dev/null
15026723 2493 /home/stephan/mail/spam
559273 108 /home/stephan/mbox
----- ------
21621089 4486
instead, i get this kind of output:
Total Number Folder
----- ------ ------
0 1 ## rc.spamassassin From MAILER-DAEMON Fri Jan 6 00:03:01
2006
0 1 ## rc.spamassassin From MAILER-DAEMON Fri Jan 6 00:07:36
2006
5117432 901 /dev/null
15026723 2493 /home/stephan/mail/spam
559273 108 /home/stephan/mbox
----- ------
21621089 4486
i abbreviated the output because i usually have hundreds of the ##
rc.spamassasin lines. i would instead like to see those entries reflected
in the /dev/null entry, because that's where those messages go. i don't
know if my newline issue is related to this or not.
thanks,
stephan
____________________________________________________________
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