procmail
[Top] [All Lists]

Re: Debugging help needed

2003-06-05 15:30:34
Thanks.  I'll try that.

What I meant to say is "if this is a bug, I'm surprised its not
known"... I was assuming it was something else but I didn't know
what.

Last, did you mistype?  Is it suppose to be:

        * $ ^From:[     ]*($\ALTFROM|MAILER-DAEMON)

instead of

        * ^From:[       ]*($\ALTFROM|MAILER-DAEMON)

Thanks again,
Perry

Dallman Ross writes:
On Thu, Jun 05, 2003 at 04:16:09PM -0500, Perry Smith wrote:

* ^From:[ ]+(${ALTFROM}|MAILER-DAEMON)

You are missing the $ expansor in the condition line:

     * $ $FOO

A couple of other points: if that's just a space in the brackets,
you don't need the brackets.  You might want to consider putting both
a space and a tab in the brackets, however, and substituting a *
for the + thereafter.  I.e., zero-or-more such chars, not one-or-
more.  No whitespace after the colon is uncommon, but not illegal.
And spammers are more likely than others to leave the space out.

Also, you probably want to quote the $ALTFROM, so that the dot
in the domain name is not a wildcard but an actual dot.  You do that
in procmail like so:

     $\FOO

So now we have

     * ^From:[       ]*($\ALTFROM|MAILER-DAEMON)

I'm surprised this is not known.  

Uh.  You're surprised what is not known?  You have a simple
syntax error in your line.  There's no real trick to it: the
$ expansor is described in the man pages.

-- 
dman

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