procmail
[Top] [All Lists]

Re: ackmail.rc not acking correctly?

1999-12-02 03:43:51

David W. Tamkin <dattier(_at_)Mcs(_dot_)Net> said:
The expansion of ^TO cannot end in a letter or a digit, and I'd tend to
expect that the local part of an address @mediaone.net will almost always
end with such a character.

Actually, the expansion of ^TO_ cannot end in a letter or digit
or underscore or fullstop, while the expansion of ^TO cannot end
in a letter. So if the local part of an address @mediaone.net ends
in a digit (for example), ^TO(_at_)mediaone(_dot_)net will still match.

It really ought to look more like this;

  :0
  * ! ^TO[a-z0-9_]+(_at_)mediaone\(_dot_)net
  { INCLUDERC=ackmail.rc }

This won't catch FOO(_at_)mediaone(_dot_)net, or various other characters
which are legal in the local part of an address.

I suggest either a simple ^TOmediaone\.net
(which will also catch name(_at_)host(_dot_)mediaone(_dot_)net),
or ^TO(_dot_)*(_at_)mediaone\(_dot_)net (if you only want to 
name(_at_)mediaone(_dot_)net).

                        Martin

Martin(_dot_)Ward(_at_)durham(_dot_)ac(_dot_)uk http://www.dur.ac.uk/~dcs0mpw/ 
Erdos number: 4
Maintainer of the G.K.Chesterton web site: http://www.dur.ac.uk/~dcs0mpw/gkc/
Shortcuts: http://i.am/mw and http://i.am/gkc -- try them!
Vote against spam: http://www.politik-digital.de/spam/en/


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