On Wed, Jun 16, 2004 at 08:54:00PM +0000, Bennett Todd wrote:
> Darn it, I bungled the regexp. Here's mutt-editor as I use it now:
>
> #!/bin/sh
> ${VISUAL:-${EDITOR:-vi}} $1
> egrep 'attach(ment|ed)' $1 >/dev/null || exit
> echo -n 'Do you need to attach a file? '
> read ans
>
> -Bennett
As another note for enhancement, how about adding a -i to the egrep so
as to catch "Attached is the file..."
-Ben