Now, I have new strange problem: If the message do not has bad
words (viagra, pills...) the user will get the message twice.
One in lynx's dump format and the second is the original message.
Why the problem is strange? Because if I use the same procmailrc
from the command line, it works perfectly!
The command I use:
procmail ./procmailrc < one-letter
See what the logs say:
-------- Log from command line -------------
...
procmail: Match on "< 30000"
procmail: Forking "procmail"
procmail: [27161] Tue Sep 2 10:00:10 2003
procmail: Executing "sed -n '/<[hH][tT][mM][lL]>/,$p' | lynx -stdin -dump"
procmail: [27161] Tue Sep 2 10:00:11 2003
procmail: Score: 0 0 "()\<viagra"
procmail: Score: 0 0 "()\<sars"
procmail: Score: 0 0 "()\<Pills?"
procmail: Assigning "HOST"
procmail: HOST mismatched "dada.eng.tau.ac.il"
From sami(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il Mon Sep 1 16:33:28 2003
Subject: test
Folder: 0
procmail: [27156] Tue Sep 2 10:00:11 2003
procmail: Assigning "LOG=
"
procmail: Match on "< 9000"
procmail: Score: 0 0 "(\<|_)SOBIG.[a-z]\>"
procmail: Score: 0 0 "InterScan NT Alert"
...
--------------------------------------------------------------------
-------- Log from procmail by sendmail -------------
...
procmail: Match on "< 30000"
procmail: Forking "procmail"
procmail: [8349] Mon Sep 1 16:33:28 2003
procmail: Executing "sed -n '/<[hH][tT][mM][lL]>/,$p' | lynx -stdin -dump"
procmail: [8349] Mon Sep 1 16:33:28 2003
procmail: Score: 0 0 "()\<viagra"
procmail: Score: 0 0 "()\<sars"
procmail: Score: 0 0 "()\<Pills?"
procmail: Assigning "HOST"
procmail: HOST mismatched "dada.eng.tau.ac.il"
procmail: Assigning
"PATH=/home/ayalon/sysgrp/uuddii/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11"
From sami(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il Mon Sep 1 16:33:28 2003
Subject: test
Folder: /var/spool/mail/uuddii 579
procmail: Assigning "LOG=
"
procmail: Match on "< 9000"
procmail: Score: 0 0 "(\<|_)SOBIG.[a-z]\>"
procmail: Score: 0 0 "InterScan NT Alert"
...
---------------------------------------------------------
BTW: No sign for the EXITCODE in the logs(?)
Any idea?
Udi
On Thu, 28 Aug 2003, David W. Tamkin wrote a fix to the modul:
Udi responded,
Thanks David, but, it dosen't work. If the message is bad
is dosen't reach the HOST line so, I get duplicat is the
good and junk folders:
Then it does work, with one bug.
:0cw
* reason to do any of this
{
:0bf
| lynx -stdin -dump
:0B
* viagra
{ EXITCODE=1 }
:0A:
viagraspam
HOST # if no "viagra", lose the lynxed clone
}
So far it's good. We have to change this:
:0a:
$DEFAULT
Let's try,
:0e
{ HOST }
:0A:
$DEFAULT
Or we can turn the logic the other way:
:0cw
* reason to do any of this
{
:0bf
| lynx -stdin -dump
EXITCODE=1
:0B
* viagra
{ EXITCODE=0 }
:0A:
viagraspam
HOST # lose the lynxed clone
}
:0a
{ HOST }
:0E:
$DEFAULT
Or we can punt; this has extra processes but, at least, no temporary file:
:0:
* reason to do any of this
* B ?? lynx -dump -stdin | grep -i viagra
viagraspam
# otherwise, procmail goes on with an unchanged message
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
--
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail