do not allow mutt to send email without attchement

2011-01-15 Thread Alexander V Vershilov
Hello. I have got a problem that sometimes I forgot add attachements to my email, or misspress 'y' key instead of 'a'. Idea of workaround is to add some markup in test (for example '{{file}}') and if there is such a markup doesn't allow to send email in send-hook, otherwise delete this markup

Re: do not allow mutt to send email without attchement

2011-01-15 Thread Toby Cubitt
On Sat, Jan 15, 2011 at 12:16:10PM +0300, Alexander V Vershilov wrote: Hello. I have got a problem that sometimes I forgot add attachements to my email, or misspress 'y' key instead of 'a'. Idea of workaround is to add some markup in test (for example '{{file}}') and if there is such a

Re: do not allow mutt to send email without attchement

2011-01-15 Thread lilydjwg
2011/1/15 Alexander V Vershilov alexander.vershi...@gmail.com: Hello. I have got a problem that sometimes I forgot add attachements to my email, or misspress 'y' key instead of 'a'. Idea of workaround is to add some markup in test (for example '{{file}}') and if there is such a markup

Re: do not allow mutt to send email without attchement

2011-01-15 Thread Alexander V Vershilov
Hello. Sat, Jan 15, 2011 at 07:23:43PM +0800, lilydjwg wrote 2011/1/15 Alexander V Vershilov alexander.vershi...@gmail.com: Hello. I have got a problem that sometimes I forgot add attachements to my email, or misspress 'y' key instead of 'a'. Idea of workaround is to add some markup in

Re: do not allow mutt to send email without attchement

2011-01-15 Thread Alexander V Vershilov
Hello. Sat, Jan 15, 2011 at 02:36:36PM +0100, Christian Brabandt wrote Hi Alexander! On Sa, 15 Jan 2011, Alexander V Vershilov wrote: If you use Vim, you can try this ftplugin: http://www.vim.org/scripts/script.php?script_id=2796 (Resending because the previous one went

Re: do not allow mutt to send email without attchement

2011-01-15 Thread Chip Camden
Quoth lilydjwg on Saturday, 15 January 2011: 2011/1/15 Alexander V Vershilov alexander.vershi...@gmail.com: Hello. I have got a problem that sometimes I forgot add attachements to my email, or misspress 'y' key instead of 'a'. Idea of workaround is to add some markup in test (for

Re: do not allow mutt to send email without attchement

2011-01-15 Thread Rob
On 15 January 2011 17:33, Chip Camden sterl...@camdensoftware.com wrote: I get an error when sourcing this plugin, but only when launching vim from mutt: Error detected while processing /usr/home/sterling/.vim/ftplugin/mail_CheckAttach.vim: line   12: E15: Invalid expression: E15: Invalid

Re: do not allow mutt to send email without attchement

2011-01-15 Thread Ed Blackman
On Sat, Jan 15, 2011 at 12:16:10PM +0300, Alexander V Vershilov wrote: I have got a problem that sometimes I forgot add attachements to my email, or misspress 'y' key instead of 'a'. Idea of workaround is to add some markup in test (for example '{{file}}') and if there is such a markup doesn't