Re: [PATCH] vim: Use non-deprecated method parse instead of new.

2019-03-30 Thread Tomi Ollila
On Thu, Mar 21 2019, Nicolas Lesser wrote:

2 emails about this same change, this without typo :D

But, in order to someone(tm) to review these changes (especially, since not
everybody can test these changes), we'd need more content in commit
message.

https://notmuchmail.org/contributing/ is good place to look what helps

Tomi

> ---
>  vim/notmuch.vim | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/vim/notmuch.vim b/vim/notmuch.vim
> index ad8b7c80..541698cd 100644
> --- a/vim/notmuch.vim
> +++ b/vim/notmuch.vim
> @@ -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
> -- 
> 2.21.0
>
> ___
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


[PATCH] vim: Use non-deprecated method parse instead of new.

2019-03-21 Thread Nicolas Lesser
---
 vim/notmuch.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index ad8b7c80..541698cd 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -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
-- 
2.21.0

___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch