procmail
[Top] [All Lists]

Procmaillog and LOG variable

2003-03-04 19:01:23


I'm trying to add a line to the procmail log which indicates what the
spam assassin score of the message was (since a few of the rules
redirect based upon the score, and I want to have a simple place for
gathering that information together).

What I had hoped for was to have something that looked like this:


From dona625gviu(_at_)yahoo(_dot_)com Tue Mar  4 17:17:55 2003
 Subject: Regarding your
Medications                                           
  Folder: /home/user/IMAP/Spam/Maybe-Spam                     6446
 X-Spam-Level: ssssssssssssssss


Instead, I get this:

X-Spam-Level: ssssssssssssssssFrom dona625gviu(_at_)yahoo(_dot_)com Tue Mar  4
17:17:55 2003
 Subject: Regarding your
Medications                                           
  Folder: /home/user/IMAP/Spam/Maybe-Spam                     6446



Here's what I'm doing:
LOG=`/usr/local/bin/formail -XX-Spam-Level -s cat`
LOG="\n"


I have tried using echo's, \n's, having the second "LOG" be empty, and
several other things (wrapping the formail call inside an echo call). 
_nothing_ is working.

Based upon some of the tips and how-to's for procmail, I am guessing
that what I want to do isn't exactly how procmail intended the LOG
variable to be used.  I would still prefer to have the X-Spam-Level be
displayed on its own line (and pref. at the end of the stanza), but if I
have to I can just put the numeric score there (so it would be like
"^16.5 From dona625").

Am I right that this is what I'm going to have to do, or is there a way
to make it do what I actually want?

If there's no way to make it actually do what I want, where do I go to
make feature requests?

(I'm currently using procmail v3.15)


Thanks,

John

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

<Prev in Thread] Current Thread [Next in Thread>