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
Attachment:
pgpN0Dn0rejtD.pgp
Description: PGP signature