procmail
[Top] [All Lists]

Re: Searching the body

1998-12-15 23:41:55
Shoeless in San Jose <batchman(_at_)slip(_dot_)net> writes:
O.k., I give up!  What's wrong with this recipe?

:0
* ^From(_dot_)*batchman(_at_)slip\(_dot_)net
* B ?? http
$MAIL

:0
* ^From(_dot_)*batchman(_at_)slip\(_dot_)net
/u3/b/a/batchman/Mail/JUNK

The first is just a test recipe to see if I can catch web addresses in the
body of the mail so they'll go to the INBOX and I can get them with a pop
mail reader like Netscape.  The second is there just to keep it from
defaulting to the inbox...but, everything I send goes to the JUNK folder
without ever filtering for the http in the body...here's a snippet of the
log file:

procmail: Match on "(_dot_)*batchman(_at_)slip\(_dot_)net"
procmail: Match on "http"
procmail: Assigning "LASTFOLDER="
procmail: Opening ""
procmail: Error while writing to ""
...

The clue may be in the LASTFOLDER=, which is blank, and the following line
Opening "".  What's the clue trying to tell me?

Umm, the MAIL variable isn't set?  Try changing that recipe to:

        :0
        * ^From(_dot_)*batchman(_at_)slip\(_dot_)net
        * B ?? http
        $DEFAULT

Or perhaps you should replace both of them with:

        :0
        * ^From(_dot_)*batchman(_at_)slip\(_dot_)net
        * ! B ?? http
        /u3/b/a/batchman/Mail/JUNK

Whether to do so probably depends on what follows this in the .procmailrc.

Philip Guenther

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