From: Felipe Contreras Date: Sun, 29 Sep 2013 18:20:37 +0000 (-0500) Subject: vim: use notmuch fields X-Git-Tag: 0.17_rc1~24 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=47e1f39c56963812ebb4711ee9c62d267b7f7a85 vim: use notmuch fields They are better encoded than Ruby's Mail. Signed-off-by: Felipe Contreras --- 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|