Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 40 / b9ee226bb2f7ff70b87b4ae6988bfd325fece8
1 Return-Path: <sebastian.fischmeister@uwaterloo.ca>\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 CFC14431FBF\r
6         for <notmuch@notmuchmail.org>; Sun, 29 Mar 2015 06:08:34 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.138\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.138 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_MED=-2.3]\r
13         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 GnYdSN9mr357 for <notmuch@notmuchmail.org>;\r
17         Sun, 29 Mar 2015 06:08:31 -0700 (PDT)\r
18 Received: from mailchk-m01.uwaterloo.ca (mailservices.uwaterloo.ca\r
19         [129.97.128.141])\r
20         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 94F02431FAE\r
23         for <notmuch@notmuchmail.org>; Sun, 29 Mar 2015 06:08:31 -0700 (PDT)\r
24 Received: from connect.uwaterloo.ca (connhub1.connect.uwaterloo.ca\r
25         [129.97.149.113])\r
26         by mailchk-m01.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id\r
27         t2TD8Smj001215\r
28         (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK)\r
29         for <notmuch@notmuchmail.org>; Sun, 29 Mar 2015 09:08:29 -0400\r
30 Received: from CONNHUB4.connect.uwaterloo.ca (129.97.149.122) by\r
31         connhub1.connect.uwaterloo.ca (129.97.149.113) with Microsoft SMTP\r
32         Server (TLS) id 14.3.210.2; Sun, 29 Mar 2015 09:08:28 -0400\r
33 Received: from uwaterloo.ca (172.16.37.102) by connhub4.connect.uwaterloo.ca\r
34         (129.97.149.122) with Microsoft SMTP Server (TLS) id 14.3.210.2;\r
35         Sun, 29 Mar 2015 09:08:28 -0400\r
36 From: Sebastian Fischmeister <sfischme@uwaterloo.ca>\r
37 To: notmuch <notmuch@notmuchmail.org>\r
38 Subject: UnicodeDecodeError with python API\r
39 X-Homepage: http://esg.uwaterloo.ca\r
40 Date: Sun, 29 Mar 2015 09:08:28 -0400\r
41 Message-ID: <874mp4q7e7.fsf@uwaterloo.ca>\r
42 MIME-Version: 1.0\r
43 Content-Type: text/plain\r
44 X-UUID: 49d3b0a5-5c20-4aea-8eb9-f5939f33af50\r
45 X-Miltered: at mailchk-m01 with ID 5517F94C.000 by Joe's j-chkmail\r
46         (http://j-chkmail.ensmp.fr)!\r
47 X-Virus-Scanned: clamav-milter 0.98.6 at mailchk-m01\r
48 X-Virus-Status: Clean\r
49 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3\r
50         (mailchk-m01.uwaterloo.ca [129.97.128.141]);\r
51         Sun, 29 Mar 2015 09:08:29 -0400 (EDT)\r
52 X-BeenThere: notmuch@notmuchmail.org\r
53 X-Mailman-Version: 2.1.13\r
54 Precedence: list\r
55 Reply-To: sfischme@uwaterloo.ca\r
56 List-Id: "Use and development of the notmuch mail system."\r
57         <notmuch.notmuchmail.org>\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
61 List-Post: <mailto:notmuch@notmuchmail.org>\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
65 X-List-Received-Date: Sun, 29 Mar 2015 13:08:35 -0000\r
66 \r
67 Hi,\r
68 \r
69 I'm trying to use the python API for notmuch, and get the following\r
70 error:\r
71 \r
72 ---\r
73 \r
74 Traceback (most recent call last):\r
75   File "./test.py", line 66, in <module>\r
76     print(type(y.get_part(1)))\r
77   File "/usr/lib/python3.4/site-packages/notmuch/message.py", line 602, in get_part\r
78     parts = self.get_message_parts()\r
79   File "/usr/lib/python3.4/site-packages/notmuch/message.py", line 591, in get_message_parts\r
80     email_msg = email.message_from_file(fp)\r
81   File "/usr/lib/python3.4/email/__init__.py", line 56, in message_from_file\r
82     return Parser(*args, **kws).parse(fp)\r
83   File "/usr/lib/python3.4/email/parser.py", line 54, in parse\r
84     data = fp.read(8192)\r
85   File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode\r
86     return codecs.ascii_decode(input, self.errors)[0]\r
87 UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3447: ordinal not in range(128)\r
88 \r
89 ---\r
90 \r
91 The code works for most messages though. How can I get around this\r
92 problem? Is it a problem in my code or the binding?\r
93 \r
94 I'm using notmuch 0.19 with python 3.4.3.\r
95 \r
96 Thanks,\r
97   Sebastian\r