sponsor Vim development Vim logo Vim Book Ad

check-mutt-attachments.vim : Script not to forget to attach files mentioned in an email

 script karma  Rating 12/8, Downloaded by 1158  Comments, bugs, improvements  Vim wiki

created by
Hugo Haas
 
script type
utility
 
description
When using Vim to write an email from say Mutt, one can mention things like "I am attaching the email I was telling you about" and then forget to attach it.

This script prompts the user when exiting Vim pointing out that an attachment is mentioned in the message, and that may require something attached to the message.

This implements a suggestion made at: http://groups.google.fr/groups?hl=fr&lr=&ie=UTF-8&selm=caq406%24rq4%241%40FreeBSD.csie.NCTU.edu.tw
 
install details
Drop the file in your plugin directory.

If you want to use it with software other than Mutt, tweak the autocmd line.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
check-mutt-attachments.vim 20040620f2 2004-06-20 6.0 Hugo Haas Fixed bug in regular expression which was making it always match.
check-mutt-attachments.vim 20040620f 2004-06-20 6.0 Hugo Haas Added detection of French hints in addition to English ones.
check-mutt-attachments.vim 20040620 2004-06-19 6.0 Hugo Haas Initial upload
ip used for rating: 18.217.60.35

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github