Re: Keep Forgetting Attachments!
* bdamm-mutt@xxxxxxxxxxxx (bdamm-mutt@xxxxxxxxxxxx) [040616 17:19]:
> 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..."
Why not '[Aa]ttach(ment|ed|)' instead? It'll avoid full
capitalization and stuff...
Ciao!
--
A man's only as old as the woman he feels.
-- Groucho Marx
The Doctor What: A really hip dude http://docwhat.gerf.org/
docwhat *at* gerf *dot* org KF6VNC