procmail
[Top] [All Lists]

Re: Regex failure?

1997-10-03 16:54:00
Gerben Wierda <Gerben_Wierda(_at_)RnA(_dot_)nl> writes:
Sorry, I am currently not subscribed and I'd like to post this before I get  
through the subscription process again, so, please answers by email to me.  
Thanks.

The following recipe

=====================================================
# Catch returning bounces.
:0
* ^FROM_MAILER
       bounces
=====================================================

Will match the following mail (all headers included)

=====================================================

From root  Fri Oct  3 23:21:30 1997

This is what it's matching.  If you don't think that should match, change
the recipe to:

        :0
        * ^FROM_MAILER
        * ! ^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )\
                ([^>]*[^((_dot_)%(_at_)a-z0-9])?root
        bounces

(That nasty regexp is from the procmailrc(5) manpage.)


I also have noticed (pm 3.10) that recipes without regexs will sometimes  
haywire procmail in such a way that the message is delivered as msg.xxx in  
the home directory.

Procmail version 3.10 doesn't know to skip blank lines, and I believe
it'll treat them as requests to deliver to $MAILDIR, which defaults to
$HOME.  This was fixed in 3.11pre3


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>
  • Regex failure?, Gerben Wierda
    • Re: Regex failure?, Philip Guenther <=