procmail
[Top] [All Lists]

Re: Autoresponder not doing what it is supposed to.

1999-08-13 02:16:56
On Fri, 13 Aug 1999 04:35:22 +0200, "Ruud H.G. van Tol"
<rvtol(_at_)isolution(_dot_)nl> wrote:
Matthew Saroff wrote:
Try:
:0
* ^TO.*pgp*
Shouldn't that better be something like 
* TOpgp@
or does that match any less? 

Close, but no cigar. The ^ is significant. p* obviously matches the
empty string, and thus can be left out, and the first .* is needless,
and so a by and large equivalent replacement would be

    * ^TOpg

but the best solution (if Andreas' version of Procmail is a recent
one, i.e. a 3.11pre4 or newer -- it would be prudent to upgrade to
3.13.1 if you have an older version anyhow) is really

    *^TO_pgp

which is what I imagine is what Andreas really meant. Adding the @
seems like a good idea, though, or perhaps (@|$) if you also want to
be able to cope with local users who don't add a @domainname part to
the address.

Hope this helps,

/* era */

-- 
 Too much to say to fit into this .signature anyway: <http://www.iki.fi/era/>
  Fight spam in Europe: <http://www.euro.cauce.org/> * Sign the EU petition