procmail
[Top] [All Lists]

Re: Problem with spam detection/deletion

2001-01-31 10:46:14
In message 
<5(_dot_)0(_dot_)2(_dot_)1(_dot_)2(_dot_)20010130165436(_dot_)07659e60(_at_)mail(_dot_)professional(_dot_)org>,
 
Professio
nal Software Engineering said:
At 17:00 2001-01-30 -0700, Jim McMaster wrote:

[chomp!]

VERBOSE=1
:0 H:$MAILDIR/trash/.lock
*^$trash_header
| /home/mcmaster/bin/rcvstore -nounseen +trash
VERBOSE=0
--------------------------------------------------------

Finally, here is the log file:
--------------------------------------------------------
procmail: [8831] Tue Jan 30 16:50:23 2001
procmail: No match on "^$trash_header"

Can anyone tell me why there is no match on $trash_header?  I suspect I am
being stupid, but cannot see the problem.

Two things:

1. What is trash_header set to?  Nowhere in your post do you indicate as 
much, and given this is the one line you're having a problem with, that 
seems to be a major omission.  To expect people to head off onto the web to 
research the spam filter you're using in order to determine this basic 
aspect of your problem is a bit much (seeing as the URL in question isn't 
even the text of the script).

Sorry...I realized I had forgotten the "minor detail" right after I hit 
"Send".


2. ^$ is a sweet regexp - empty line.  perhaps you forgot to include the $ 
flag which would ensure that it is evaluated via sh substitution before 
being parsed as a regexp:

* $ ^$trash_header

That was it.  I misunderstood that part of the man page.
-- 
Jim McMaster
mailto:mcmaster(_at_)falcon(_dot_)stortek(_dot_)com


---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.

_______________________________________________
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

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