2004-06-16T18:36:20 The Doctor What: > Okay, I have a problem: > > I'll write an email, mention an attachment and then send the email > without attaching the file in question. I have the same problem, chronically. > I have a possible solution: > > Have mutt check for the work attachment or attached and then prompt > the user "Do you need to attach a file?" immediately after exiting > edit mode. Brilliant! I'm gonna try that out and see how it tastes! > Would this be hard to impliment? Here's how I'm gonna implement it: ~/bin/mutt-editor: #!/bin/sh while true;do ${VISUAL:-${EDITOR:-vi}} $1 egrep -w 'attach|(ment|ed)' $1 >/dev/null || exit echo -n 'Do you need to attach a file? ' read ans case "$ans" in [yY]*) continue;; esac exit done and of course in ~/.muttrc: set editor=~/bin/mutt-editor (with ~ expanded of course). -Bennett
Attachment:
pgpyAbmVULkfF.pgp
Description: PGP signature