diff options
author | Bart Trojanowski <bart@jukie.net> | 2009-11-27 14:05:13 -0500 |
---|---|---|
committer | Bart Trojanowski <bart@jukie.net> | 2009-11-27 14:05:13 -0500 |
commit | e13bdc2c0e10dfa2786f65ee185e8a6563feb2db (patch) | |
tree | eec8b78c14deb1ab9e371cfe663dfc0b662cf2eb /vim/plugin/notmuch.vim | |
parent | fd805c16c3fdcc4170a42d3cacb9b16cdfa11ff7 (diff) |
vim: don't remove headers until after parsing them
Diffstat (limited to 'vim/plugin/notmuch.vim')
-rw-r--r-- | vim/plugin/notmuch.vim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index a4d04e2..f32a134 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -939,8 +939,6 @@ function! s:NM_compose_send() let line = getline(lnum) endwhile let body_starts = lnum - exec printf('0,%dd', body_starts) - write "[-a header] [-b bcc-addr] [-c cc-addr] [-s subject] to-addr let cmd = ['mail'] @@ -972,6 +970,12 @@ function! s:NM_compose_send() endfor call extend(cmd, tos) + " TODO: make sure we have at least one target + " TODO: ask about empty jubject, etc + + exec printf('0,%dd', body_starts) + write + call map(cmd, 's:NM_shell_escape(v:val)') let cmdtxt = join(cmd) . '< ' . fname let out = system(cmdtxt) |