Timothy J Luoma <luomat+procmail(_at_)luomat(_dot_)peak(_dot_)org> writes:
...
But now I am using different names (such as
'nospam(_at_)luomat(_dot_)peak(_dot_)org') and
want to catch _anything_ with a "+" in the ^TO line.
However, it should be
anything+anything(_at_)luomat(_dot_)peak(_dot_)org
That is, I should now make sure that my hostname is the one which has the
plussed addresses.
...
Is there any way to trim down my line:
* ^TO(_dot_)*\+(_dot_)*(_at_)luomat\(_dot_)peak\(_dot_)org
or is that as good as it gets?
Well, it's actually too general, as it'll match the following:
To: bob+foo(_at_)elsewhere,
luomat(_at_)luomat(_dot_)peak(_dot_)org
The following is closer, though it's not perfect. Truly correct code would
require a full rfc822 parser, which is more work than it's worth for this.
* ^TO[a-z]+\+[-a-zA-Z0-9_(_dot_)]*(_at_)luomat\(_dot_)peak\(_dot_)org
Philip Guenther