procmail
[Top] [All Lists]

Re: Failing recipes: ^From:

2007-04-03 08:58:14
* Bart Schaefer <barton(_dot_)schaefer(_at_)gmail(_dot_)com> 
[2007:04:03:07:54:51-0700] scribed:
On 4/3/07, Michael D Schleif <mds(_at_)helices(_dot_)org> wrote:
What am I missing?

       If the regular expression contains '^FROM_MAILER' it will  be  substi-
       tuted by '(^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From
       
)([^>]*[^((_dot_)%(_at_)a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?Mail(er)?
       |daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)?smtp(error)?
       |s(erv(ices?|er)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9][-_a-
       z0-9]*)?[%@>\t ][^<)]*(\(.*\).*)?)?$([^>]|$))' (a stripped down
       version of '^FROM_DAEMON'), which should catch mails coming from most
       mailer-daemons.

The mail you're trying to catch is not coming from a mailer-daemon.
Why are you using FROM_MAILER at all?

Yes, I know.  In fact, this is where I started:

    :0
    * ^from:.*mr real estate wizard <noreply(_at_)mrrealestatewizard\(_dot_)com>
    rei/


    procmail: No match on "^from:.*mr real estate wizard 
<noreply(_at_)mrrealestatewizard\(_dot_)com>"


NOTE: This is just one (1) of dozens of ^from: recipes that began
failing late last year.

OK, EUREKA !?!?

I found that several (maybe, ALL?) of these have double quotation (")
marks in the ^From: header; which, of course, must be specially
considered ;>

Thank you.


   :0
   * ^From:.*mr real estate wizard 
<noreply(_at_)mrrealestatewizard\(_dot_)com>
   rei/

Although really

   :0
   * ^From:(_dot_)*(_at_)mrrealestatewizard\(_dot_)com
   rei/

is probably enough.


-- 
Best Regards,

mds
-
Dare to fix things before they break . . .
-
Our capacity for understanding is inversely proportional to how much
we think we know.  The more I know, the more I know I don't know . . .
--

Attachment: signature.asc
Description: Digital signature

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>