procmail
[Top] [All Lists]

Re: recipe question

1997-09-04 20:07:09
On Thu, 4 Sep 1997, Chuck Campbell wrote:

In response to my earlier request, I received the following:

If I understand you correctly, you want to know why a message might be
tossed into /dev/null.

The way I do this ("borrowed" from era) is:

:0
I assume this means no lockfile is used?

Not at this point.  If you used a lockfile here, you would get an
extraneous lockfile message.  You need the lockfile when writing to a
file.  This part is not doing that.
 
* ^X-Advertis
{
  LOG = "Reason: Its a freaking ad $N"

  :0
  /dev/null
}

Where N="
"
This is the part I don't understand, what is N equal to?

Its a newline.  It provides the equivalent of:

LOG = "Reason: Its a freaking ad 
"
 
This way you see how many messages were caught by a specific filter.

Meanwhile, I had tried

:0
* ^From.*fwtk
* ^Subject:.*ubscribe
fwtk_junk

I then did a ln -s /dev/null fwtk_junk, so that the messages are actually
thrown away, and not kept in a folder called fwtk_junk.  I continue to get
the following errors in the log though:

Are you positive that it is this one filter acting up?  Check your verbose
log to make sure.   

--
"If you ever want to get anywhere in politics, my boy, you're going to
have to get a toehold in the public eye."


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