[PATCH] Fix subject handling
authorIan Main <imain@stemwinder.org>
Tue, 30 Sep 2014 15:54:12 +0000 (08:54 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:04:49 +0000 (10:04 -0800)
be/0ab9349747be7566654eb339f306074964b0fd [new file with mode: 0644]

diff --git a/be/0ab9349747be7566654eb339f306074964b0fd b/be/0ab9349747be7566654eb339f306074964b0fd
new file mode 100644 (file)
index 0000000..3cf4434
--- /dev/null
@@ -0,0 +1,70 @@
+Return-Path: <imain@stemwinder.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id E510D431FB6\r
+       for <notmuch@notmuchmail.org>; Tue, 30 Sep 2014 09:02:48 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id Ezvy15UrrjzG for <notmuch@notmuchmail.org>;\r
+       Tue, 30 Sep 2014 09:02:43 -0700 (PDT)\r
+X-Greylist: delayed 487 seconds by postgrey-1.32 at olra;\r
+       Tue, 30 Sep 2014 09:02:43 PDT\r
+Received: from cmta18.telus.net (cmta18.telus.net [209.171.16.91])\r
+       by olra.theworths.org (Postfix) with ESMTP id 55CA5431FAF\r
+       for <notmuch@notmuchmail.org>; Tue, 30 Sep 2014 09:02:43 -0700 (PDT)\r
+Received: from ovo.mains.priv ([207.102.88.62]) by cmta18.telus.net with TELUS\r
+       id xTua1o0031LiWEf01Tuan4; Tue, 30 Sep 2014 09:54:35 -0600\r
+X-Authority-Analysis: v=2.0 cv=cbEMWA/M c=1 sm=2\r
+       a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=S-IsBHyFrF4A:10 a=tsa3CZZnAAAA:8\r
+       a=GQuKjTm4JvCeaJcCRCQA:9 a=EcQDfIwDZEqJA1f7rVUV8Q==:117\r
+X-Telus-Outbound-IP: 207.102.88.62\r
+From: Ian Main <imain@stemwinder.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] Fix subject handling\r
+Date: Tue, 30 Sep 2014 08:54:12 -0700\r
+Message-Id: <1412092452-7847-1-git-send-email-imain@stemwinder.org>\r
+X-Mailer: git-send-email 1.9.3\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 30 Sep 2014 16:02:49 -0000\r
+\r
+I'm just starting to use notmuch so I'm not sure if this is the right\r
+way to fix this but this was erroring out so I changed it to what you\r
+see here which is working for me now.\r
+---\r
+ vim/notmuch.vim | 2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
+index 331e930..b33c6c6 100644\r
+--- a/vim/notmuch.vim\r
++++ b/vim/notmuch.vim\r
+@@ -653,7 +653,7 @@ ruby << EOF\r
+                       items.each do |e|\r
+                               authors = e.authors.to_utf8.split(/[,|]/).map { |a| author_filter(a) }.join(",")\r
+                               date = Time.at(e.newest_date).strftime(date_fmt)\r
+-                              subject = e.messages.first['subject']\r
++                              subject = e.subject\r
+                               if $mail_installed\r
+                                       subject = Mail::Field.new("Subject: " + subject).to_s\r
+                               else\r
+-- \r
+1.9.3\r
+\r