<<< Date Index >>>     <<< Thread Index >>>

Re: hook for not editing email



On Friday, January 02, 2004 at 05:28 CET,
     David Yitzchak Cohen <lists+mutt_users@xxxxxxxxxxxxxx> wrote:

> I ilke this version of muttedit better, actually:
> #!/bin/sh
> 
> file=$1
> if egrep "^Subject:" $file | egrep -q "<eom>\$" ; then
>  touch $file
> else
>  vi $file
> fi

Is there a reason not to use

   if egrep -q '^Subject: .*<eom>$' $file ; then

Am I missing some subtle point? The -q option seems to be specific to
GNU grep, by the way.

-- 
Magnus Bäck
magnus@xxxxxxxxxxx