procmail
[Top] [All Lists]

Re: Debug of a procmail recipe

1998-08-16 10:51:01
Thanks era, I'll change it according to your recommendations below.
Re; your previous email concerning shells, I got an interesting book by
a fella called Schullman on Bash. It's kinda old, but seems to
cover the subject in something approaching plain English. (Wow!)
Regards,
-Colin



On Sun, 16 Aug 1998, era eriksson wrote:

On Sat, 15 Aug 1998 20:32:44 +0200,
Martin Schulze <joey(_at_)kuolema(_dot_)Infodrom(_dot_)North(_dot_)DE> wrote:
 > Colin J. Raven wrote:
 >> *^From:hdskin(_at_)msn(_dot_)com
 > Make this
 >    *^From: hdskin(_at_)msn(_dot_)com
 > or
 >    *^From:(_dot_)*hdskin(_at_)msn(_dot_)com

No; make this

  * ^From:(.*\<)?hdskin(_at_)msn\(_dot_)com\>

or at least

  * ^From:[   ]*hdskin(_at_)msn\(_dot_)com

The \< and \> tokens try to make sure the matched sequence isn't part
of a longer phrase (like mahdskin(_at_)msn(_dot_)command(_dot_)com) and of 
course, if
you want to match a literal dot, you should always backslash-escape it
(especially when it's between two fairly short tokens, as the case is
here. Without the backslash, you'd accidentally match on e.g. msndcom
or whatever).

/* era */

-- 
Bot Bait: It shouldn't even matter whether  (`')  Just  (`')  http://www.iki
I am a resident of the State of Washington   \/ Married! \/   .fi/~era/


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