Re: [notmuch] notmuch_threads_back and notmuch_messages_back
authorCarl Worth <cworth@cworth.org>
Sat, 28 Nov 2009 03:57:59 +0000 (19:57 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:45 +0000 (09:35 -0800)
89/73f4d288f5bd682ef45d9ef4bf93a7ed31358f [new file with mode: 0644]

diff --git a/89/73f4d288f5bd682ef45d9ef4bf93a7ed31358f b/89/73f4d288f5bd682ef45d9ef4bf93a7ed31358f
new file mode 100644 (file)
index 0000000..25ffd53
--- /dev/null
@@ -0,0 +1,58 @@
+Return-Path: <cworth@cworth.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 D9D33431FC0;\r
+       Fri, 27 Nov 2009 19:58:14 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\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 V2n7Dn6bLhKj; Fri, 27 Nov 2009 19:58:14 -0800 (PST)\r
+Received: from cworth.org (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 2DECD431FAE;\r
+       Fri, 27 Nov 2009 19:58:14 -0800 (PST)\r
+From: Carl Worth <cworth@cworth.org>\r
+To: Ruben Pollan <meskio@sindominio.net>, notmuch@notmuchmail.org\r
+In-Reply-To: <20091126202347.GA16654@blackspot>\r
+References: <20091126202347.GA16654@blackspot>\r
+Date: Fri, 27 Nov 2009 19:57:59 -0800\r
+Message-ID: <87pr73jo6w.fsf@yoom.home.cworth.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Subject: Re: [notmuch] notmuch_threads_back and notmuch_messages_back\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\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: Sat, 28 Nov 2009 03:58:15 -0000\r
+\r
+On Thu, 26 Nov 2009 21:23:47 +0100, Ruben Pollan <meskio@sindominio.net> wrote:\r
+> Is it possible to implement notmuch_threads_back and notmuch_messages_back?\r
+> And I guess will make sense to have also notmuch_tags_back.\r
+> \r
+> This functions will do the oposite than notmuch_threads_advance and\r
+> notmuch_messages_advance. So I can use them as iterators going back and forward.\r
+> \r
+> I didn't check the implementation of notmuch. I don't know if will be easy or\r
+> will need to redesign a lot of code.\r
+\r
+Most cases of these iterators are built on Xapian iterators, (C++ objects with\r
+overloaded operators). So those are just using ++ for advance() and can\r
+easily use -- for the new function, (I'd like a verb that pairs better\r
+with "advance" than the non-verb "back"---any suggestions)?\r
+\r
+So those won't need any new code. The one case that will need new code\r
+is that for notmuch_message_get_replies and\r
+notmuch_message_get_toplevel_messages the messages iterator is currently\r
+built on a singly-linked list. Making it doubly linked would obviously\r
+not be hard though.\r
+\r
+-Carl\r