The following is a pair of patches implementing an "attach" action for compose mode. The first patch reorganizes the code for the magic "Notmuch-" headers used in compose mode. The second patch adds a magic Notmuch-Attach header, maps an input() helper to add the header, and adds logic to process the header on-send. Nick Howell (2): vim: compose: support additional Notmuch- filters vim: compose: attachment support vim/notmuch.vim | 67 ++++++++++++++++++++++++++++++++++++++---- vim/syntax/notmuch-compose.vim | 5 ---- 2 files changed, 61 insertions(+), 11 deletions(-) -- 2.7.3