* [PATCH] Fix subject handling
@ 2014-09-30 15:54 Ian Main
2014-10-01 17:14 ` Ian Main
0 siblings, 1 reply; 2+ messages in thread
From: Ian Main @ 2014-09-30 15:54 UTC (permalink / raw)
To: notmuch
I'm just starting to use notmuch so I'm not sure if this is the right
way to fix this but this was erroring out so I changed it to what you
see here which is working for me now.
---
vim/notmuch.vim | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index 331e930..b33c6c6 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -653,7 +653,7 @@ ruby << EOF
items.each do |e|
authors = e.authors.to_utf8.split(/[,|]/).map { |a| author_filter(a) }.join(",")
date = Time.at(e.newest_date).strftime(date_fmt)
- subject = e.messages.first['subject']
+ subject = e.subject
if $mail_installed
subject = Mail::Field.new("Subject: " + subject).to_s
else
--
1.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] Fix subject handling
2014-09-30 15:54 [PATCH] Fix subject handling Ian Main
@ 2014-10-01 17:14 ` Ian Main
0 siblings, 0 replies; 2+ messages in thread
From: Ian Main @ 2014-10-01 17:14 UTC (permalink / raw)
To: notmuch
Ian Main wrote:
> I'm just starting to use notmuch so I'm not sure if this is the right
> way to fix this but this was erroring out so I changed it to what you
> see here which is working for me now.
> ---
> vim/notmuch.vim | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/vim/notmuch.vim b/vim/notmuch.vim
> index 331e930..b33c6c6 100644
> --- a/vim/notmuch.vim
> +++ b/vim/notmuch.vim
> @@ -653,7 +653,7 @@ ruby << EOF
> items.each do |e|
> authors = e.authors.to_utf8.split(/[,|]/).map { |a| author_filter(a) }.join(",")
> date = Time.at(e.newest_date).strftime(date_fmt)
> - subject = e.messages.first['subject']
> + subject = e.subject
> if $mail_installed
> subject = Mail::Field.new("Subject: " + subject).to_s
> else
> --
> 1.9.3
You can disregard this. I think somehow I must have had a version mismatch
going on when I first set up notmuch.
Also I'm on IRC as 'Slower' if any of you would like to chat with me about
these patches.
Thanks!!
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-01 17:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-30 15:54 [PATCH] Fix subject handling Ian Main
2014-10-01 17:14 ` Ian Main
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).