[Linux-disciples] wild cards question

Stephen R Laniel steve at laniels.org
Thu Mar 9 14:43:09 EST 2006


On Thu, Mar 09, 2006 at 02:42:00PM -0500, Jamie Forrest wrote:
> can i merge those into one statement by doing the following?
> * !(To|Cc).*jamie at curdnerd*.com

Shell wildcards (filename*.jpg) and regular expressions
(.*stuff.*) are different things; procmail uses the latter.
So the correct form of what you're looking to do is

* !(To|Cc).*jamie at curdnerd.*.com

Though you might want to be a little more specific and do
something like

* !(To|Cc).*jamie at curdnerds?.com

which says that 'curdnerd' can have one or more 's's at the
end.

-- 
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060309/5eaf97a3/attachment.pgp


More information about the Linux-disciples mailing list