Re: do not allow mutt to send email without attchement

2011-01-23 Thread Eric Smith
Ed Blackman said: > echo "No file was attached but a search of the message text suggests > there should be one. Add a header \"X-attached: none\" to override this check if no attachment is intended." For overriding, You could instead create a macro that sets the sendmail variable back to

Re: do not allow mutt to send email without attchement

2011-01-16 Thread Ed Blackman
On Mon, Jan 17, 2011 at 11:16:30AM +1300, Cameron McCormack wrote: One small issue: function header-override { grep -i -E "^(X-attached: *none|Resent-From: )*$" "$TMPFILE" } I think that line should be grep -i -E "^(X-attached: *none|Resent-From: )" "$TMPFILE" otherwise all mails get

Re: do not allow mutt to send email without attchement

2011-01-16 Thread Cameron McCormack
Hi Ed. Ed Blackman: > It started from the second script in > http://wiki.mutt.org/?ConfigTricks/CheckAttach but I've added my own > refinements (not checking for keywords in messages I resend > ("bounce") or in Content-Disposition filenames, etc). Great! I’ve been wanting to get something like t

Re: do not allow mutt to send email without attchement

2011-01-16 Thread Christian Brabandt
Hi Chip! On Sa, 15 Jan 2011, Chip Camden 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 expression: ex

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 al

Re: do not allow mutt to send email without attchement

2011-01-15 Thread Rob
On 15 January 2011 17:33, Chip Camden 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 expression: exists("

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 : > > 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}}') a

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

Re: do not allow mutt to send email without attchement

2011-01-15 Thread Christian Brabandt
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 directly to the sender. I'm > > used to press `r' instead of 'L', sorry.) > >

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 : > > 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

Re: do not allow mutt to send email without attchement

2011-01-15 Thread lilydjwg
2011/1/15 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

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

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 a