Re: UnicodeDecodeError with python API
authorSebastian Fischmeister <sfischme@uwaterloo.ca>
Sun, 29 Mar 2015 23:10:53 +0000 (19:10 +2000)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:48:38 +0000 (14:48 -0700)
4a/35f78d3ef3cd1c4cd72e672a01819c6ca5ef1c [new file with mode: 0644]

diff --git a/4a/35f78d3ef3cd1c4cd72e672a01819c6ca5ef1c b/4a/35f78d3ef3cd1c4cd72e672a01819c6ca5ef1c
new file mode 100644 (file)
index 0000000..98cd283
--- /dev/null
@@ -0,0 +1,89 @@
+Return-Path: <sebastian.fischmeister@uwaterloo.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 30A77431FBF\r
+       for <notmuch@notmuchmail.org>; Sun, 29 Mar 2015 16:11:03 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.138\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.138 tagged_above=-999 required=5\r
+       tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_MED=-2.3]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 85Z4RlEcG0Oz for <notmuch@notmuchmail.org>;\r
+       Sun, 29 Mar 2015 16:11:00 -0700 (PDT)\r
+Received: from mailchk-m01.uwaterloo.ca (mailservices.uwaterloo.ca\r
+       [129.97.128.141])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id E35C5431FAE\r
+       for <notmuch@notmuchmail.org>; Sun, 29 Mar 2015 16:10:59 -0700 (PDT)\r
+Received: from connect.uwaterloo.ca (connhub1.connect.uwaterloo.ca\r
+       [129.97.149.113])\r
+       by mailchk-m01.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id\r
+       t2TNAskJ015444\r
+       (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK);\r
+       Sun, 29 Mar 2015 19:10:56 -0400\r
+Received: from CONNHUB3.connect.uwaterloo.ca (129.97.149.121) by\r
+       connhub1.connect.uwaterloo.ca (129.97.149.113) with Microsoft SMTP\r
+       Server (TLS) id 14.3.210.2; Sun, 29 Mar 2015 19:10:53 -0400\r
+Received: from uwaterloo.ca (172.16.39.52) by connhub3.connect.uwaterloo.ca\r
+       (129.97.149.121) with Microsoft SMTP Server (TLS) id 14.3.210.2;\r
+       Sun, 29 Mar 2015 19:10:53 -0400\r
+From: Sebastian Fischmeister <sfischme@uwaterloo.ca>\r
+To: "W. Trevor King" <wking@tremily.us>\r
+Subject: Re: UnicodeDecodeError with python API\r
+In-Reply-To: <20150329163658.GK22036@odin.tremily.us>\r
+References: <874mp4q7e7.fsf@uwaterloo.ca>\r
+       <20150329163658.GK22036@odin.tremily.us>\r
+X-Homepage: http://esg.uwaterloo.ca\r
+Date: Sun, 29 Mar 2015 19:10:53 -0400\r
+Message-ID: <87ego7pfia.fsf@uwaterloo.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-UUID: 46b5a45e-cab6-47fd-b184-caea11ffedce\r
+X-Miltered: at mailchk-m01 with ID 5518867E.000 by Joe's j-chkmail\r
+       (http://j-chkmail.ensmp.fr)!\r
+X-Virus-Scanned: clamav-milter 0.98.6 at mailchk-m01\r
+X-Virus-Status: Clean\r
+X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3\r
+       (mailchk-m01.uwaterloo.ca [129.97.128.141]);\r
+       Sun, 29 Mar 2015 19:10:57 -0400 (EDT)\r
+Cc: notmuch <notmuch@notmuchmail.org>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+Reply-To: sfischme@uwaterloo.ca\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 29 Mar 2015 23:11:03 -0000\r
+\r
+> My first guess is that the file's encoding doesn't match your locale.\r
+> Do you have a non-ASCII locale set?  You can check with:\r
+\r
+It seems to be more tricky than I thought. I didn't have a locale set.\r
+\r
+When I set one, I can parse some emails with this:\r
+\r
+export LANG=en_US.latin-1\r
+\r
+Others with this:\r
+\r
+export LANG=en_US.UTF-8\r
+\r
+Others fail with either of the two.\r
+\r
+I can display all messages correctly in emacs though.\r
+\r
+  Sebastian\r
+\r