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

Re: Keep Forgetting Attachments!



2004-06-16T18:56:17 Bennett Todd:
> 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

Well, that lasted quick, obviously whether the answer is "yes" or
"no" you don't want to loop back into the editor, so instead I'm
using:

        #!/bin/sh
        ${VISUAL:-${EDITOR:-vi}} $1
        egrep -w 'attach|(ment|ed)' $1 >/dev/null || exit
        echo -n 'Do you need to attach a file? '
        read ans

so it's just a reminder.

-Bennett

Attachment: pgpXOc7UMIPLf.pgp
Description: PGP signature