procmail
[Top] [All Lists]

Re: What am I doing wrong? (was: Re: why won't it match something in the body for me?

2002-10-12 13:45:49
At 13:51 2002-10-12 -0400, daniel lance herrick wrote:

Now I want to check the body, also. The man pages say it is simple and
straightforward. Just as checking the headers is. Obviously I am
overlooking something trivial and obvious. Somebody please look over my
shoulder. I haven't learned anything useful about this since writing the
message below last Tuesday.

:0B
* condititions which match against body because you included the B flag

or:

:0
* B ?? conditions matching against the body variable


>   * daniel
>   $HOME/mail/danielbody
> # end of test spam filter
>
> the log comes out looking like
>
> procmail: [7916] Tue Oct  8 22:57:59 2002
> procmail: No match on "daniel"

Uhm, you don't confirm that the message DOES in fact have "daniel" in it. "No match on..." is entirely valid when there's NO MATCH.

Take your mailbox file and grep it for 'daniel' - your mail client may display encoded text, but it might not appear as PLAIN TEXT within the message.

[snip - several lines having NOTHING to do with the provided recipe - it's a given that if the NO MATCH occurred, you wouldn't be filing into the daniel mailbox]

> [theonomy-l(_at_)cosmo theonomy-l]$ procmail -v
> procmail v3.21 2001/06/29

You really should consider upgrading to 3.22


Run the filter within a sandbox (see link in .sig), and throw saved/edited messages at it, so you KNOW what you're working with, then go from there.

---
 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