From: Ian Main Date: Tue, 30 Sep 2014 15:54:12 +0000 (+1700) Subject: [PATCH] Fix subject handling X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=93ea6f7413464775b197723dc31b272beca662d5;p=notmuch-archives.git [PATCH] Fix subject handling --- diff --git a/be/0ab9349747be7566654eb339f306074964b0fd b/be/0ab9349747be7566654eb339f306074964b0fd new file mode 100644 index 000000000..3cf44344c --- /dev/null +++ b/be/0ab9349747be7566654eb339f306074964b0fd @@ -0,0 +1,70 @@ +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 E510D431FB6 + for ; Tue, 30 Sep 2014 09:02:48 -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 Ezvy15UrrjzG for ; + Tue, 30 Sep 2014 09:02:43 -0700 (PDT) +X-Greylist: delayed 487 seconds by postgrey-1.32 at olra; + Tue, 30 Sep 2014 09:02:43 PDT +Received: from cmta18.telus.net (cmta18.telus.net [209.171.16.91]) + by olra.theworths.org (Postfix) with ESMTP id 55CA5431FAF + for ; Tue, 30 Sep 2014 09:02:43 -0700 (PDT) +Received: from ovo.mains.priv ([207.102.88.62]) by cmta18.telus.net with TELUS + id xTua1o0031LiWEf01Tuan4; Tue, 30 Sep 2014 09:54:35 -0600 +X-Authority-Analysis: v=2.0 cv=cbEMWA/M c=1 sm=2 + a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=S-IsBHyFrF4A:10 a=tsa3CZZnAAAA:8 + a=GQuKjTm4JvCeaJcCRCQA:9 a=EcQDfIwDZEqJA1f7rVUV8Q==:117 +X-Telus-Outbound-IP: 207.102.88.62 +From: Ian Main +To: notmuch@notmuchmail.org +Subject: [PATCH] Fix subject handling +Date: Tue, 30 Sep 2014 08:54:12 -0700 +Message-Id: <1412092452-7847-1-git-send-email-imain@stemwinder.org> +X-Mailer: git-send-email 1.9.3 +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: Tue, 30 Sep 2014 16:02:49 -0000 + +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 +