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 E08E2429E25
\r
6 for <notmuch@notmuchmail.org>; Wed, 2 Nov 2011 00:29:47 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id ssAPH+wFFDAl for <notmuch@notmuchmail.org>;
\r
17 Wed, 2 Nov 2011 00:29:47 -0700 (PDT)
\r
18 Received: from homiemail-a18.g.dreamhost.com (caiajhbdcagg.dreamhost.com
\r
20 by olra.theworths.org (Postfix) with ESMTP id 64065431FB6
\r
21 for <notmuch@notmuchmail.org>; Wed, 2 Nov 2011 00:29:47 -0700 (PDT)
\r
22 Received: from homiemail-a18.g.dreamhost.com (localhost [127.0.0.1])
\r
23 by homiemail-a18.g.dreamhost.com (Postfix) with ESMTP id D3E3925006B;
\r
24 Wed, 2 Nov 2011 00:29:46 -0700 (PDT)
\r
25 DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:subject
\r
26 :in-reply-to:references:date:message-id:mime-version:
\r
27 content-type; q=dns; s=sspaeth.de; b=RahxwGlflQxh7YvD1B1pd+918vp
\r
28 I7p1jPTluilx1WG1Df5vppbg+ldXII3zkbpuKd/YGV5+kFUM6r+FHiu+olH2oG+G
\r
29 ckuwUwwIPFUXrcejLktD2tLB4fHNGwWzmNGU3skVzHEYOdeQLBQWfEsD839ufs1K
\r
31 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to
\r
32 :subject:in-reply-to:references:date:message-id:mime-version:
\r
33 content-type; s=sspaeth.de; bh=QJKtZ0wcO5TbN34aonL3T7KfnOU=; b=d
\r
34 1mkvViBFsiKgFJCWbuHcNBvv7QJQ0i1EQaJM121Tl37TDMqk/z/RPcLFSe7mS0iG
\r
35 lP9vgFjAFoW6IE1NyR4MxOcVfihmEx4cj77Q4bnO8q/JPWZa4NG61G5pdpvjon2x
\r
36 WmqejxdrHjpIWzdn5eDQ569BarTTGGga/x7j8lZUqY=
\r
37 Received: from spaetzbook.sspaeth.de (mtec-hg-docking-2-dhcp-194.ethz.ch
\r
39 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
40 (No client certificate requested)
\r
41 (Authenticated sender: fax@sspaeth.de)
\r
42 by homiemail-a18.g.dreamhost.com (Postfix) with ESMTPSA id 4E92B250069;
\r
43 Wed, 2 Nov 2011 00:29:45 -0700 (PDT)
\r
44 Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation);
\r
45 Wed, 02 Nov 2011 08:29:43 +0100
\r
46 From: Sebastian Spaeth <Sebastian@SSpaeth.de>
\r
47 To: Justus Winter <4winter@informatik.uni-hamburg.de>, notmuch@notmuchmail.org
\r
48 Subject: Re: python: unpythonic result of Message.get_replies()
\r
49 In-Reply-To: <E1RBGVK-0000Xu-Pc@thinkbox.jade-hamburg.de>
\r
50 References: <E1RBGVK-0000Xu-Pc@thinkbox.jade-hamburg.de>
\r
51 User-Agent: Notmuch/0.9_rc1-30-g7047975 (http://notmuchmail.org) Emacs/23.3.1
\r
52 (x86_64-pc-linux-gnu)
\r
53 Date: Wed, 02 Nov 2011 08:29:42 +0100
\r
54 Message-ID: <87sjm79e3d.fsf@SSpaeth.de>
\r
56 Content-Type: multipart/signed; boundary="=-=-=";
\r
57 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
58 X-BeenThere: notmuch@notmuchmail.org
\r
59 X-Mailman-Version: 2.1.13
\r
61 List-Id: "Use and development of the notmuch mail system."
\r
62 <notmuch.notmuchmail.org>
\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
66 List-Post: <mailto:notmuch@notmuchmail.org>
\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
69 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
70 X-List-Received-Date: Wed, 02 Nov 2011 07:29:48 -0000
\r
73 Content-Transfer-Encoding: quoted-printable
\r
75 On Wed, 05 Oct 2011 03:42:38 +0200, Justus Winter <4winter@informatik.uni-h=
\r
77 Non-text part: multipart/mixed
\r
78 > I noticed that Message.get_replies() returns a Messages object *or*
\r
79 > None. Quoting the documentation:
\r
81 > > Returns: Messages or None if there are no replies to this message
\r
83 > Messages is a class implementing the iterator protocol, so a python
\r
84 > programmer would expect to get an iterator that raises a StopIteration
\r
85 > on the first invocation of next() if there aren't any replies.
\r
88 Yes, that change would make perfect sense, and I would be happy to
\r
89 accept a patch for it :-)
\r
94 Content-Type: application/pgp-signature
\r
96 -----BEGIN PGP SIGNATURE-----
\r
97 Version: GnuPG v1.4.11 (GNU/Linux)
\r
99 iEYEARECAAYFAk6w8WcACgkQVYX1jMgnoGLx2wCfSrczYAMLIBqGB47mQHlKeZoQ
\r
100 P7sAnidizsPho/jna6wLMPvVXhZ+PyCU
\r
102 -----END PGP SIGNATURE-----
\r