[PATCH 04/13] show: Associate an sprinter with each format
[notmuch-archives.git] / 92 / 5337012a09c07b476a0f113152daff661a22db
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 E08F6429E34\r
6         for <notmuch@notmuchmail.org>; Mon,  5 Dec 2011 13:19:47 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \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 J+gzn+wtG-fr for <notmuch@notmuchmail.org>;\r
17         Mon,  5 Dec 2011 13:19:47 -0800 (PST)\r
18 Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com\r
19         [209.85.215.181]) (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 08F55429E33\r
22         for <notmuch@notmuchmail.org>; Mon,  5 Dec 2011 13:19:46 -0800 (PST)\r
23 Received: by mail-ey0-f181.google.com with SMTP id l13so1423797eaa.26\r
24         for <notmuch@notmuchmail.org>; Mon, 05 Dec 2011 13:19:46 -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=L16t4iZOSm8FxApinl6zrhW1qzi3SqD7p7lbh8MEG/E=;\r
29         b=al8J0IoqD9k4xH0OV5ix7QZt0MuqTt95NIkjVynTH/C6NakWIgpEBstmSUS9c6SzwZ\r
30         ztDIlXWfs+QXEt0hADqikRAFCoDamQKcCg+Z4xVw/sHYNOspr+YGwB/2YpDUQZAQCahu\r
31         Kn3trw/FKoFSyzTeMJZY0iyxYZZYscR2psLjI=\r
32 Received: by 10.213.27.205 with SMTP id j13mr1442353ebc.104.1323119986632;\r
33         Mon, 05 Dec 2011 13:19:46 -0800 (PST)\r
34 Received: from localhost (cpc1-sgyl2-0-0-cust548.18-2.cable.virginmedia.com.\r
35         [82.41.10.37])\r
36         by mx.google.com with ESMTPS id x12sm63197484eef.9.2011.12.05.13.19.44\r
37         (version=TLSv1/SSLv3 cipher=OTHER);\r
38         Mon, 05 Dec 2011 13:19:45 -0800 (PST)\r
39 From: Patrick Totzke <patricktotzke@googlemail.com>\r
40 To: notmuch@notmuchmail.org\r
41 Subject: [PATCH 3/3] errors='ignore' when decode to unicode\r
42 Date: Mon,  5 Dec 2011 21:19:29 +0000\r
43 Message-Id: <1323119969-1485-4-git-send-email-patricktotzke@gmail.com>\r
44 X-Mailer: git-send-email 1.7.4.1\r
45 In-Reply-To: <1323119969-1485-1-git-send-email-patricktotzke@gmail.com>\r
46 References: <1323119969-1485-1-git-send-email-patricktotzke@gmail.com>\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Mon, 05 Dec 2011 21:19:48 -0000\r
60 \r
61 ---\r
62  bindings/python/notmuch/message.py |    2 +-\r
63  bindings/python/notmuch/thread.py  |    4 ++--\r
64  2 files changed, 3 insertions(+), 3 deletions(-)\r
65 \r
66 diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py\r
67 index fac575c..4790663 100644\r
68 --- a/bindings/python/notmuch/message.py\r
69 +++ b/bindings/python/notmuch/message.py\r
70 @@ -425,7 +425,7 @@ class Message(object):\r
71          header = Message._get_header(self._msg, header)\r
72          if header == None:\r
73              raise NotmuchError(STATUS.NULL_POINTER)\r
74 -        return header.decode('UTF-8')\r
75 +        return header.decode('UTF-8', errors='ignore')\r
76  \r
77      def get_filename(self):\r
78          """Returns the file path of the message file\r
79 diff --git a/bindings/python/notmuch/thread.py b/bindings/python/notmuch/thread.py\r
80 index 3e59b35..ddefade 100644\r
81 --- a/bindings/python/notmuch/thread.py\r
82 +++ b/bindings/python/notmuch/thread.py\r
83 @@ -326,7 +326,7 @@ class Thread(object):\r
84          authors = Thread._get_authors(self._thread)\r
85          if authors is None:\r
86              return None\r
87 -        return authors.decode('UTF-8')\r
88 +        return authors.decode('UTF-8', errors='ignore')\r
89  \r
90      def get_subject(self):\r
91          """Returns the Subject of 'thread'\r
92 @@ -339,7 +339,7 @@ class Thread(object):\r
93          subject = Thread._get_subject(self._thread)\r
94          if subject is None:\r
95              return None\r
96 -        return subject.decode('UTF-8')\r
97 +        return subject.decode('UTF-8', errors='ignore')\r
98  \r
99      def get_newest_date(self):\r
100          """Returns time_t of the newest message date\r
101 -- \r
102 1.7.4.1\r
103 \r