[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: escape a string literal for use with regex?



On Wed, May 03, 2006 at 09:34:19AM +0930, David Purton wrote:
  <snip> 
> I ended up using fgrep, which if I had read the grep manual I would have
> found does what I want (Blush).
> 
> This works well:
> 
> # subject kill file
> SUBJECT=`formail -zxSubject:`
> :0:
> * ? fgrep -qx "$SUBJECT" $HOME/.mutt.killfile
> caughtspam

Just out of curiosity (I'm sure this is in the manual, but a cursory
glimpse didn't find it), what command are you using from mutt to dump
the subject to ~/.mutt.killfile ?

-- 
Christopher Nelson -- chris@cavein.org
-----------------------------------------------------------------------
You have an ability to sense and know higher truth.



Reply to: