1 Return-Path: <prvs=103e2f17a=jrosenthal@jhu.edu>
\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 76625429E20
\r
6 for <notmuch@notmuchmail.org>; Mon, 9 May 2011 08:23:18 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled
\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 PhDom4KuTIqH for <notmuch@notmuchmail.org>;
\r
16 Mon, 9 May 2011 08:23:18 -0700 (PDT)
\r
17 Received: from ipex4.johnshopkins.edu (ipex4.johnshopkins.edu
\r
18 [128.220.161.141]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id EC636431FB5
\r
21 for <notmuch@notmuchmail.org>; Mon, 9 May 2011 08:23:17 -0700 (PDT)
\r
22 X-IronPort-AV: E=Sophos;i="4.64,341,1301889600"; d="scan'208";a="68694456"
\r
23 Received: from dyn-butler-159-101.dyn.columbia.edu (HELO gogo.home)
\r
25 by ipex4.johnshopkins.edu with ESMTP/TLS/AES256-SHA;
\r
26 09 May 2011 11:23:17 -0400
\r
27 Received: from jkr by gogo.home with local (Exim 4.75)
\r
28 (envelope-from <jrosenthal@jhu.edu>)
\r
29 id 1QJSIm-0001JO-Mb; Mon, 09 May 2011 11:23:16 -0400
\r
30 From: Jesse Rosenthal <jrosenthal@jhu.edu>
\r
31 To: Anton Khirnov <anton@khirnov.net>, David Bremner <david@tethera.net>,
\r
32 notmuch@notmuchmail.org
\r
33 Subject: Re: [PATCH] python/thread: always return a string in
\r
35 In-Reply-To: <20110509151310.4FF447F508@zohar.localdomain>
\r
36 References: <1304924794-20380-1-git-send-email-anton@khirnov.net>
\r
37 <87bozcvzdy.fsf@zancas.localnet>
\r
38 <20110509151310.4FF447F508@zohar.localdomain>
\r
39 User-Agent: Notmuch/0.5-192-gecd6549 (http://notmuchmail.org) Emacs/23.3.1
\r
41 Date: Mon, 09 May 2011 11:23:16 -0400
\r
42 Message-ID: <87k4dzc2zf.fsf@gogo.home>
\r
44 Content-Type: text/plain; charset=us-ascii
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.13
\r
48 List-Id: "Use and development of the notmuch mail system."
\r
49 <notmuch.notmuchmail.org>
\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
53 List-Post: <mailto:notmuch@notmuchmail.org>
\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
57 X-List-Received-Date: Mon, 09 May 2011 15:23:18 -0000
\r
59 On Mon, 09 May 2011 17:13:10 +0200, Anton Khirnov <anton@khirnov.net> wrote:
\r
60 > But those aren't message headers, those are thread properties. And I'd
\r
61 > argue that a thread always has authors and a subject (possibly empty).
\r
63 The RFC says yes on the author, no on the subject. The only things
\r
64 guaranteed are "From:" and originating timestamp. So I'm not sure why
\r
65 subject should be guaranteed a string result and not, say, "Cc."
\r
67 My sense is that Python users are prety good with testing against None,
\r
68 especially since (not "") == (not []) == (not None) == True. This change
\r
69 seems like it would end up producing more inconsistencies with the way
\r
70 you deal with headers, by producing special cases.
\r