projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0b0baa
)
vim: use notmuch fields
author
Felipe Contreras
<felipe.contreras@gmail.com>
Sun, 29 Sep 2013 18:20:37 +0000
(13:20 -0500)
committer
Felipe Contreras
<felipe.contreras@gmail.com>
Wed, 20 Nov 2013 13:23:29 +0000
(07:23 -0600)
They are better encoded than Ruby's Mail.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
vim/notmuch.vim
patch
|
blob
|
history
diff --git
a/vim/notmuch.vim
b/vim/notmuch.vim
index 438fadf70087e64dc4f9d46c410f5d0ff0e7c75d..11a7c26d65ec917a9563017ca3aff6ed1908c6d9 100644
(file)
--- a/
vim/notmuch.vim
+++ b/
vim/notmuch.vim
@@
-309,9
+309,9
@@
ruby << EOF
nm_m.start = b.count
b << "%s %s (%s)" % [msg['from'], date, msg.tags]
b << "Subject: %s" % [msg['subject']]
- b << "To: %s" % m['to']
- b << "Cc: %s" % m['cc']
- b << "Date: %s" % m['date']
+ b << "To: %s" % m
sg
['to']
+ b << "Cc: %s" % m
sg
['cc']
+ b << "Date: %s" % m
sg
['date']
nm_m.body_start = b.count
b << "--- %s ---" % part.mime_type
part.convert.each_line do |l|