From 47e1f39c56963812ebb4711ee9c62d267b7f7a85 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Sun, 29 Sep 2013 13:20:37 -0500 Subject: [PATCH] vim: use notmuch fields They are better encoded than Ruby's Mail. Signed-off-by: Felipe Contreras --- vim/notmuch.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 438fadf7..11a7c26d 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|