[feature request] notmuch_thread_get_newest_subject
authorPatrick Totzke <patricktotzke@googlemail.com>
Fri, 3 Feb 2012 22:07:01 +0000 (22:07 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:44:01 +0000 (09:44 -0800)
10/c37442c91e9f5a204ba4f41821028ab88f46d8 [new file with mode: 0644]

diff --git a/10/c37442c91e9f5a204ba4f41821028ab88f46d8 b/10/c37442c91e9f5a204ba4f41821028ab88f46d8
new file mode 100644 (file)
index 0000000..29be618
--- /dev/null
@@ -0,0 +1,80 @@
+Return-Path: <patricktotzke@googlemail.com>\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 BC819431FAF\r
+       for <notmuch@notmuchmail.org>; Fri,  3 Feb 2012 06:08:02 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "Date"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.367\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.367 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, INVALID_DATE=0.432, RCVD_IN_DNSWL_LOW=-0.7]\r
+       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 uPfKLDLaYU0I for <notmuch@notmuchmail.org>;\r
+       Fri,  3 Feb 2012 06:08:01 -0800 (PST)\r
+Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
+ [74.125.82.45])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 53EC2431FAE   for <notmuch@notmuchmail.org>; Fri,  3 Feb 2012 06:08:01 -0800\r
+ (PST)\r
+Received: by wgbdt12 with SMTP id dt12so3381590wgb.2\r
+       for <notmuch@notmuchmail.org>; Fri, 03 Feb 2012 06:08:00 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=googlemail.com; s=gamma;\r
+       h=content-type:mime-version:content-transfer-encoding:from:user-agent\r
+       :to:date:message-id:subject:date;\r
+       bh=5oBSVtmgXXkhAm0ft3+JS2n25iOvXsxg+GgM50BtBJo=;\r
+       b=GhBZY/g2nLv1fRkguvlWKe0wAhhOdE5oZNmM0qtxlryVfQZaGCkb25XeyYGtrWwiSw\r
+       fqem3pfuSmP061HVNhMPXCFRsqnOk47G0cq/oC2hV1+/wI96ir7LZZXtcafTB1DEuDM7\r
+       7+p0saBDH6zkR/5+QIsY47CAMvVQzQO+ht84k=\r
+Received: by 10.180.78.233 with SMTP id e9mr25156081wix.0.1328278080246;\r
+       Fri, 03 Feb 2012 06:08:00 -0800 (PST)\r
+Received: from localhost (dhcp-91-036.inf.ed.ac.uk. [129.215.91.36])\r
+       by mx.google.com with ESMTPS id dw7sm6806665wib.4.2012.02.03.06.07.58\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Fri, 03 Feb 2012 06:07:59 -0800 (PST)\r
+Content-Type: text/plain; charset="utf-8"\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: quoted-printable\r
+From: Patrick Totzke <patricktotzke@googlemail.com>\r
+User-Agent: alot/0.21+\r
+To: notmuch@notmuchmail.org,\r
+Date: Fri, 03 Feb 2012 14:07:01 -0000\r
+Message-ID: <20120203140701.12380.16746@megatron>\r
+Subject: [feature request] notmuch_thread_get_newest_subject\r
+Date: Fri, 03 Feb 2012 14:07:01 +0000\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: Fri, 03 Feb 2012 14:08:02 -0000\r
+\r
+Hi all,\r
+\r
+There seems to be no way to get the "current" subject line of a thread.\r
+I promised to relay my feature request to the list, so here it is..\r
+\r
+This could be done using a parameter like "newest-or-original" for =\r
+\r
+`notmuch_thread_get_subject` in threads.cc,\r
+which would look up the newest message in the thread and return its subject.\r
+\r
+Secondly, this should be usable from the python bindings.\r
+I intend to use this in alot to display the newest subject for a thread by =\r
+default.\r
+\r
+cheers,\r
+/p\r