[PATCH 03/21] vim: use notmuch fields

Felipe Contreras felipe.contreras at gmail.com
Sat Nov 2 06:55:36 PDT 2013


They are better encoded than Ruby's Mail.

Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
---
 vim/notmuch.vim | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index 438fadf..11a7c26 100644
--- 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" % msg['to']
+				b << "Cc: %s" % msg['cc']
+				b << "Date: %s" % msg['date']
 				nm_m.body_start = b.count
 				b << "--- %s ---" % part.mime_type
 				part.convert.each_line do |l|
-- 
1.8.4.2+fc1



More information about the notmuch mailing list