1 Return-Path: <patricktotzke@googlemail.com>
\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 628B2429E44
\r
6 for <notmuch@notmuchmail.org>; Tue, 6 Dec 2011 12:23:24 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 9qjdf2R2WPK1 for <notmuch@notmuchmail.org>;
\r
17 Tue, 6 Dec 2011 12:23:24 -0800 (PST)
\r
18 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com
\r
19 [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id BAEDA429E26
\r
22 for <notmuch@notmuchmail.org>; Tue, 6 Dec 2011 12:23:23 -0800 (PST)
\r
23 Received: by bkbzu5 with SMTP id zu5so7864235bkb.26
\r
24 for <notmuch@notmuchmail.org>; Tue, 06 Dec 2011 12:23:20 -0800 (PST)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
26 d=googlemail.com; s=gamma;
\r
27 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;
\r
28 bh=xUVyoG55EK9yomXTtJvmzxNMKnx26yGxt7BVVFhdLvQ=;
\r
29 b=kdxiTI2AUKtFSARjD9aGZr77afDK/G6CpexsNMJTfZyGPcoRQkmvWIGBFJ+afZ2Z3f
\r
30 faU8Ql27EBtfCcRG++3S2/MNbqwZSsdGN7XxRgOvwsaIGOj6xrIVYp6IutCTo3I7s+Nt
\r
31 xMv+asEgk38oefldZ1+HIUjWXfvG1MG4ozLY8=
\r
32 Received: by 10.180.92.169 with SMTP id cn9mr18911055wib.62.1323203000762;
\r
33 Tue, 06 Dec 2011 12:23:20 -0800 (PST)
\r
34 Received: from localhost (cpc1-sgyl2-0-0-cust548.18-2.cable.virginmedia.com.
\r
36 by mx.google.com with ESMTPS id z35sm35240814wbm.12.2011.12.06.12.23.15
\r
37 (version=TLSv1/SSLv3 cipher=OTHER);
\r
38 Tue, 06 Dec 2011 12:23:18 -0800 (PST)
\r
39 From: Patrick Totzke <patricktotzke@googlemail.com>
\r
40 To: notmuch@notmuchmail.org
\r
41 Subject: [PATCH] fix format string in Message.__unicode__
\r
42 Date: Tue, 6 Dec 2011 20:22:43 +0000
\r
43 Message-Id: <1323202963-1600-2-git-send-email-patricktotzke@gmail.com>
\r
44 X-Mailer: git-send-email 1.7.4.1
\r
45 In-Reply-To: <1323202963-1600-1-git-send-email-patricktotzke@gmail.com>
\r
46 References: <87borl7ufy.fsf@SSpaeth.de>
\r
47 <1323202963-1600-1-git-send-email-patricktotzke@gmail.com>
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\r
51 List-Id: "Use and development of the notmuch mail system."
\r
52 <notmuch.notmuchmail.org>
\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
56 List-Post: <mailto:notmuch@notmuchmail.org>
\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
60 X-List-Received-Date: Tue, 06 Dec 2011 20:23:24 -0000
\r
62 Since 2b0116119160f2dc83, Message.__str__ doesn't
\r
63 construct a hash containing the thread data before
\r
64 constructing the formatstring. This changes the formatstring
\r
65 to accept positional parameters instead of a hash.
\r
67 bindings/python/notmuch/message.py | 2 +-
\r
68 1 files changed, 1 insertions(+), 1 deletions(-)
\r
70 diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py
\r
71 index f95e50e..ce8e718 100644
\r
72 --- a/bindings/python/notmuch/message.py
\r
73 +++ b/bindings/python/notmuch/message.py
\r
74 @@ -799,7 +799,7 @@ class Message(object):
\r
75 return unicode(self).encode('utf-8')
\r
77 def __unicode__(self):
\r
78 - format = "%(from)s (%(date)s) (%(tags)s)"
\r
79 + format = "%s (%s) (%s)"
\r
80 return format % (self.get_header('from'),
\r
82 date.fromtimestamp(self.get_date()),
\r