mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 11:58:10 +01:00
vim: fix Mail 2.8.0 warning
Passing an unparsed header field to Mail::Field.new is deprecated and will be removed in Mail 2.8.0. Use Mail::Field.parse instead. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
00487fa901
commit
8af4cd160a
1 changed files with 1 additions and 1 deletions
|
@ -666,7 +666,7 @@ ruby << EOF
|
|||
date = Time.at(e.newest_date).strftime(date_fmt)
|
||||
subject = e.messages.first['subject']
|
||||
if $mail_installed
|
||||
subject = Mail::Field.new("Subject: " + subject).to_s
|
||||
subject = Mail::Field.parse("Subject: " + subject).to_s
|
||||
else
|
||||
subject = subject.force_encoding('utf-8')
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue