From: Ian Main Date: Wed, 1 Oct 2014 17:14:56 +0000 (+1700) Subject: RE: [PATCH] Fix subject handling X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5aaecc1c729e9342498779dd191d65a84a49f116;p=notmuch-archives.git RE: [PATCH] Fix subject handling --- diff --git a/12/92bbf04ebf7e01177ec18128faeb3e5e3672ce b/12/92bbf04ebf7e01177ec18128faeb3e5e3672ce new file mode 100644 index 000000000..b0de1b15b --- /dev/null +++ b/12/92bbf04ebf7e01177ec18128faeb3e5e3672ce @@ -0,0 +1,92 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 4785E431FBC + for ; Wed, 1 Oct 2014 10:15:07 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 7zaOMDQWxkTh for ; + Wed, 1 Oct 2014 10:15:01 -0700 (PDT) +Received: from cmta8.telus.net (cmta8.telus.net [209.171.16.81]) + by olra.theworths.org (Postfix) with ESMTP id A64CA431FB6 + for ; Wed, 1 Oct 2014 10:15:01 -0700 (PDT) +Received: from ovo.mains.priv ([207.102.88.62]) by cmta8.telus.net with TELUS + id xtF01o00S1LiWEf01tF08d; Wed, 01 Oct 2014 11:15:01 -0600 +X-Authority-Analysis: v=2.0 cv=ffdzPTsF c=1 sm=2 + a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=S-IsBHyFrF4A:10 a=IkcTkHD0fZMA:10 + a=tsa3CZZnAAAA:8 a=1OjXmaDuMcscfRqsut8A:9 a=QEXdDO2ut3YA:10 + a=EcQDfIwDZEqJA1f7rVUV8Q==:117 +X-Telus-Outbound-IP: 207.102.88.62 +Received: from ovo.mains.priv (localhost.localdomain [127.0.0.1]) + by ovo.mains.priv (8.14.8/8.14.8) with ESMTP id s91HEvDI012864 + for ; Wed, 1 Oct 2014 10:14:58 -0700 +Received: (from imain@localhost) + by ovo.mains.priv (8.14.8/8.14.8/Submit) id s91HEufE012863; + Wed, 1 Oct 2014 10:14:56 -0700 +X-Authentication-Warning: ovo.mains.priv: imain set sender to imain@redhat.com + using -f +Date: Wed, 01 Oct 2014 10:14:56 -0700 +From: Ian Main +To: notmuch@notmuchmail.org +Message-ID: <542c3690e6502_323583be90a@ovo.mains.priv.notmuch> +In-Reply-To: <1412092452-7847-1-git-send-email-imain@stemwinder.org> +References: <1412092452-7847-1-git-send-email-imain@stemwinder.org> +Subject: RE: [PATCH] Fix subject handling +Mime-Version: 1.0 +Content-Type: text/plain; + charset=utf-8 +Content-Transfer-Encoding: 7bit +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 01 Oct 2014 17:15:07 -0000 + +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