1 Return-Path: <Sebastian@SSpaeth.de>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id A9B6B4196F0
\r
6 for <notmuch@notmuchmail.org>; Sun, 21 Mar 2010 13:08:02 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.8 tagged_above=-999 required=5 tests=[BAYES_50=0.8]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id D3JCRkzXBAFR for <notmuch@notmuchmail.org>;
\r
16 Sun, 21 Mar 2010 13:08:00 -0700 (PDT)
\r
17 Received: from homiemail-a15.g.dreamhost.com (caiajhbdcaib.dreamhost.com
\r
19 by olra.theworths.org (Postfix) with ESMTP id D7D16431FC1
\r
20 for <notmuch@notmuchmail.org>; Sun, 21 Mar 2010 13:08:00 -0700 (PDT)
\r
21 Received: from sspaeth.de (unknown [195.190.188.219])
\r
22 by homiemail-a15.g.dreamhost.com (Postfix) with ESMTPA id B75A676C062;
\r
23 Sun, 21 Mar 2010 13:07:58 -0700 (PDT)
\r
24 Received: by sspaeth.de (sSMTP sendmail emulation);
\r
25 Sun, 21 Mar 2010 21:07:56 +0100
\r
26 From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>
\r
27 To: Ruben Pollan <meskio@sindominio.net>, notmuch@notmuchmail.org
\r
28 In-Reply-To: <1269080605-5617-1-git-send-email-meskio@sindominio.net>
\r
29 References: <873a09jt2t.fsf@yoom.home.cworth.org>
\r
30 <1269080605-5617-1-git-send-email-meskio@sindominio.net>
\r
31 Date: Sun, 21 Mar 2010 21:07:56 +0100
\r
32 Message-ID: <87sk7te8v7.fsf@SSpaeth.de>
\r
34 Content-Type: text/plain; charset=us-ascii
\r
35 Subject: Re: [notmuch] reverse iterators
\r
36 X-BeenThere: notmuch@notmuchmail.org
\r
37 X-Mailman-Version: 2.1.13
\r
39 List-Id: "Use and development of the notmuch mail system."
\r
40 <notmuch.notmuchmail.org>
\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
42 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
44 List-Post: <mailto:notmuch@notmuchmail.org>
\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
48 X-List-Received-Date: Sun, 21 Mar 2010 20:08:02 -0000
\r
50 On Sat, 20 Mar 2010 11:23:20 +0100, Ruben Pollan <meskio@sindominio.net> wrote:
\r
52 > Adds support to reverse iteration on messages, threads and tags. To revew and
\r
53 > think if makes sense to include them on notmuch or wait until they have a real
\r
56 /me raises arm. Real use case here! Personally, I don't need the
\r
57 backwards operator (and I don't see the case where I would need to go
\r
58 back very often). But a _move_to_first() for threads, messages (and
\r
59 probably tags), would be really useful to me now:
\r
61 Having bound notmuch.so to python, I am in a situation, where I can only
\r
62 offer iteration once, with subsequent iterations failing. This is very
\r
63 unexpected and very un-pythonesque. I fell myself over it:
\r
65 #the below len() iterates and exhausts msgs
\r
67 for msg in msgs: print msg
\r
68 #above line fails horribly already...
\r
69 else: print "No message for me!"
\r
71 So, having a way to reset the iterator would be a real boon already now.
\r