Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 628B2429E44 for ; Tue, 6 Dec 2011 12:23:24 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9qjdf2R2WPK1 for ; Tue, 6 Dec 2011 12:23:24 -0800 (PST) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id BAEDA429E26 for ; Tue, 6 Dec 2011 12:23:23 -0800 (PST) Received: by bkbzu5 with SMTP id zu5so7864235bkb.26 for ; Tue, 06 Dec 2011 12:23:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=xUVyoG55EK9yomXTtJvmzxNMKnx26yGxt7BVVFhdLvQ=; b=kdxiTI2AUKtFSARjD9aGZr77afDK/G6CpexsNMJTfZyGPcoRQkmvWIGBFJ+afZ2Z3f faU8Ql27EBtfCcRG++3S2/MNbqwZSsdGN7XxRgOvwsaIGOj6xrIVYp6IutCTo3I7s+Nt xMv+asEgk38oefldZ1+HIUjWXfvG1MG4ozLY8= Received: by 10.180.92.169 with SMTP id cn9mr18911055wib.62.1323203000762; Tue, 06 Dec 2011 12:23:20 -0800 (PST) Received: from localhost (cpc1-sgyl2-0-0-cust548.18-2.cable.virginmedia.com. [82.41.10.37]) by mx.google.com with ESMTPS id z35sm35240814wbm.12.2011.12.06.12.23.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Dec 2011 12:23:18 -0800 (PST) From: Patrick Totzke To: notmuch@notmuchmail.org Subject: [PATCH] fix format string in Message.__unicode__ Date: Tue, 6 Dec 2011 20:22:43 +0000 Message-Id: <1323202963-1600-2-git-send-email-patricktotzke@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1323202963-1600-1-git-send-email-patricktotzke@gmail.com> References: <87borl7ufy.fsf@SSpaeth.de> <1323202963-1600-1-git-send-email-patricktotzke@gmail.com> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2011 20:23:24 -0000 Since 2b0116119160f2dc83, Message.__str__ doesn't construct a hash containing the thread data before constructing the formatstring. This changes the formatstring to accept positional parameters instead of a hash. --- bindings/python/notmuch/message.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py index f95e50e..ce8e718 100644 --- a/bindings/python/notmuch/message.py +++ b/bindings/python/notmuch/message.py @@ -799,7 +799,7 @@ class Message(object): return unicode(self).encode('utf-8') def __unicode__(self): - format = "%(from)s (%(date)s) (%(tags)s)" + format = "%s (%s) (%s)" return format % (self.get_header('from'), self.get_tags(), date.fromtimestamp(self.get_date()), -- 1.7.4.1