vim: use notmuch fields

They are better encoded than Ruby's Mail.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras 2013-09-29 13:20:37 -05:00
parent a0b0baaf2b
commit 47e1f39c56

View file

@ -309,9 +309,9 @@ ruby << EOF
nm_m.start = b.count nm_m.start = b.count
b << "%s %s (%s)" % [msg['from'], date, msg.tags] b << "%s %s (%s)" % [msg['from'], date, msg.tags]
b << "Subject: %s" % [msg['subject']] b << "Subject: %s" % [msg['subject']]
b << "To: %s" % m['to'] b << "To: %s" % msg['to']
b << "Cc: %s" % m['cc'] b << "Cc: %s" % msg['cc']
b << "Date: %s" % m['date'] b << "Date: %s" % msg['date']
nm_m.body_start = b.count nm_m.body_start = b.count
b << "--- %s ---" % part.mime_type b << "--- %s ---" % part.mime_type
part.convert.each_line do |l| part.convert.each_line do |l|