procmail
[Top] [All Lists]

write errors

1998-05-20 07:32:41
Paul Tomko has these recipes,

|         :0c
|         | /usr/lib/sendmail $FROM < /home/hurricane/tomko/spammers.txt
| 
|         :0c
|         | echo $FROM >> /usr1/digirati/www.tomkoinc.com/spammers.dat

and he tells us,

| The errors I get are:
| 
| procmail: Error while writing to " /usr/lib/sendmail $FROM
|   <  /home/hurricane/tomko/spammers.txt"
| procmail: Error while writing to " echo $FROM >>
| /usr1/digirati/www.tomkoinc.com/spammers.dat"

Procmail tries to write the text of the message (or only the head or only
the body if you have the `h' or `b' flag on the recipe) to the action line
of every recipe.  If the command is something that doesn't read stdin or
doesn't read the entirety of what procmail tries to write, procmail reports
a write error.

Add the `i' flag to each of those recipes to tell procmail to ignore the
write error.  (And Paul, a local lockfile on the recipe that adds the
sender's name to spammers.dat wouldn't hurt; also note that a lot of
legitimate mail can arrive as blind carbons, so the code you posted is goint
to have a lot of false positives and brand the occasional legitimate sender
as a spammer.)

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