On Mon, 16 Dec 1996, CaT wrote:
> tbac(_at_)mail(_dot_)idt(_dot_)net wrote the following:
> >
> > Hi, I have a problem with procmail. I have a field that looks like
> > * ^TO_fh for a mailing list. It worked fine until I added a user
> > fhenry, now mail for fhenry is intercepted by the fh . How can I may
> > the first only accept fh and not anything with fh in the first 2
> > characters of its name?
>
> Try ^TO_fh[^a-z] as the pattern match if no alphabetical char should
> follow the username.
Actually, for any name "foo", of any length, the pattern:
* ^TO_foo\>
is better than
* ^TO_foo[^a-z]
because the first one succeeds or fails correctly on the following headers,
where the second one would incorrectly match:
To: foo
To: foo123(_at_)some(_dot_)com
To: foo_bar(_at_)some(_dot_)com
To: foo(_dot_)bar(_at_)some(_dot_)com
___________________________________________________________
Alan Stebbens <aks(_at_)sgi(_dot_)com> http://reality.sgi.com/aks