[PATCH 0/6] API for iterating over all messages in a thread
authorAustin Clements <amdragon@MIT.EDU>
Sun, 25 Nov 2012 04:57:01 +0000 (23:57 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:50:56 +0000 (09:50 -0800)
22/a318fe99f017bd65ec49a6ab9e7ab6756b32da [new file with mode: 0644]

diff --git a/22/a318fe99f017bd65ec49a6ab9e7ab6756b32da b/22/a318fe99f017bd65ec49a6ab9e7ab6756b32da
new file mode 100644 (file)
index 0000000..29b8706
--- /dev/null
@@ -0,0 +1,92 @@
+Return-Path: <amdragon@mit.edu>\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 EBA51431FC0\r
+       for <notmuch@notmuchmail.org>; Sat, 24 Nov 2012 20:57:19 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 sYjC4unLnkr0 for <notmuch@notmuchmail.org>;\r
+       Sat, 24 Nov 2012 20:57:19 -0800 (PST)\r
+Received: from dmz-mailsec-scanner-7.mit.edu (DMZ-MAILSEC-SCANNER-7.MIT.EDU\r
+       [18.7.68.36])\r
+       by olra.theworths.org (Postfix) with ESMTP id 54DDD431FAF\r
+       for <notmuch@notmuchmail.org>; Sat, 24 Nov 2012 20:57:19 -0800 (PST)\r
+X-AuditID: 12074424-b7fce6d000000925-36-50b1a52d07e5\r
+Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
+       by dmz-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 70.DA.02341.D25A1B05; Sat, 24 Nov 2012 23:57:17 -0500 (EST)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id qAP4vGEq023558; \r
+       Sat, 24 Nov 2012 23:57:16 -0500\r
+Received: from drake.dyndns.org\r
+       (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
+       [209.6.116.242]) (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qAP4vDVU000080\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Sat, 24 Nov 2012 23:57:16 -0500 (EST)\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1TcUHJ-0003Zj-QV; Sat, 24 Nov 2012 23:57:13 -0500\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/6] API for iterating over all messages in a thread\r
+Date: Sat, 24 Nov 2012 23:57:01 -0500\r
+Message-Id: <1353819427-13182-1-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.7.10.4\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFlrMIsWRmVeSWpSXmKPExsUixG6noqu7dGOAwZVGQYvVc3ksrt+cyezA\r
+       5LFz1l12j2erbjEHMEVx2aSk5mSWpRbp2yVwZTxZYVgwiati58NlzA2M8zi6GDk5JARMJNrv\r
+       bWKGsMUkLtxbz9bFyMUhJLCPUWLOptvMEM4GRonHtz6AVQkJPGKSmLumCiIxl1Hi8PStYAk2\r
+       AQ2JbfuXM4LYIgLSEjvvzmYFsZkFZCV+nP8DZgsLuEj03zzKDmKzCKhKdDTNBOvlFXCQ6Jrb\r
+       ywRxhqJE97MJbBMYeRcwMqxilE3JrdLNTczMKU5N1i1OTszLSy3SNdfLzSzRS00p3cQIDgsX\r
+       lR2MzYeUDjEKcDAq8fDeSNwYIMSaWFZcmXuIUZKDSUmUN3MRUIgvKT+lMiOxOCO+qDQntfgQ\r
+       owQHs5IIr7UqUI43JbGyKrUoHyYlzcGiJM57PeWmv5BAemJJanZqakFqEUxWhoNDSYJXZAlQ\r
+       o2BRanpqRVpmTglCmomDE2Q4D9BwUZAa3uKCxNzizHSI/ClGRSlxXnOQhABIIqM0D64XFrev\r
+       GMWBXhHmdQCp4gHGPFz3K6DBTECDn85eBzK4JBEhJdXAqPbxYOm+Uz/ZPwv8tGieMnevQ4Ks\r
+       bGPVJv5j9z4w5RxnrXyza+eTJInbQmzXNihMeSNiWB4ud8dUcd8UM0eL5y4/9F7dvLz7kIuA\r
+       9bzHqxqzpsxeN6PlGmPJnEPn4u/wCQf8OiGoPPF7jvIRtq71Uu/DeoUry2bV79swTefH2oCZ\r
+       dl0HdrsHFimxFGckGmoxFxUnAgAsvMeotgIAAA==\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: Sun, 25 Nov 2012 04:57:20 -0000\r
+\r
+This series adds a library API for iterating over all messages in a\r
+thread in sorted order.  This is easy for the library to provide and\r
+difficult to obtain from the current API.  Plus, if you don't count\r
+the code added to the bindings, this series is actually a net\r
+decrease of 4 lines of code because of simplifications it enables.\r
+\r
+Do we want the API to do more?  Currently it's very minimal, but I can\r
+imagine two ways it could be generalized.  It could take an argument\r
+to indicate which message list to return, which could be all messages,\r
+matched messages, top-level messages, or maybe even unmatched messages\r
+(possibly all in terms of message flags).  It could also take an\r
+argument indicating the desired sort order.  Currently, the caller can\r
+use existing message flag APIs to distinguish matched and unmatched\r
+messages and there's a separate function for the top-level messages.\r
+However, if the API could do all of these things, it would subsume\r
+various other API functions, such as notmuch_thread_get_*_date.\r
+\r
+Also, is this the right name for the new API?  In particular, if we do\r
+later want to add a function that returns, say, the list of matched\r
+messages, we'll have a convention collision with\r
+notmuch_thread_get_matched_messages, which returns only a count.\r
+\r