Re: [PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring
authorW. Trevor King <wking@tremily.us>
Tue, 4 Feb 2014 17:48:23 +0000 (09:48 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:59:43 +0000 (09:59 -0800)
df/ac3f0406bc87b4fecbad4bb5a5f6f537e99054 [new file with mode: 0644]

diff --git a/df/ac3f0406bc87b4fecbad4bb5a5f6f537e99054 b/df/ac3f0406bc87b4fecbad4bb5a5f6f537e99054
new file mode 100644 (file)
index 0000000..31c3268
--- /dev/null
@@ -0,0 +1,142 @@
+Return-Path: <wking@tremily.us>\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 1A20B431FBD\r
+       for <notmuch@notmuchmail.org>; Tue,  4 Feb 2014 09:48:34 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.1\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       RCVD_IN_DNSWL_NONE=-0.0001] 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 0R3i1u5xbiYi for <notmuch@notmuchmail.org>;\r
+       Tue,  4 Feb 2014 09:48:26 -0800 (PST)\r
+Received: from qmta07.westchester.pa.mail.comcast.net\r
+       (qmta07.westchester.pa.mail.comcast.net [76.96.62.64])\r
+       by olra.theworths.org (Postfix) with ESMTP id CDF49431FBC\r
+       for <notmuch@notmuchmail.org>; Tue,  4 Feb 2014 09:48:25 -0800 (PST)\r
+Received: from omta23.westchester.pa.mail.comcast.net ([76.96.62.74])\r
+       by qmta07.westchester.pa.mail.comcast.net with comcast\r
+       id NHSL1n0021c6gX857HoRzG; Tue, 04 Feb 2014 17:48:25 +0000\r
+Received: from odin.tremily.us ([24.18.63.50])\r
+       by omta23.westchester.pa.mail.comcast.net with comcast\r
+       id NHoQ1n00E152l3L3jHoQVH; Tue, 04 Feb 2014 17:48:25 +0000\r
+Received: by odin.tremily.us (Postfix, from userid 1000)\r
+       id CC55BFCED15; Tue,  4 Feb 2014 09:48:23 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin;\r
+       t=1391536103; bh=TYVOc9xO8QUA4VGt9GbPayyVSp0FeEdeACeNRdr6RIE=;\r
+       h=Date:From:To:Cc:Subject:References:In-Reply-To;\r
+       b=XC+LJqGpK3NNR7URDCLGZKKq0jaHd0XMToKMGZhr7eqeh8EumFOhgC+6VNp7N7MrU\r
+       0c/uIQJaWmP8W6e+8w6JABbYRvZpQYxyONDfCLmmzzMK5l3SErEUAslWf5SA65S4gw\r
+       pUso7qQd5+ZMfobm5j7UWJATRgVAthUWtSzDr0RI=\r
+Date: Tue, 4 Feb 2014 09:48:23 -0800\r
+From: "W. Trevor King" <wking@tremily.us>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>\r
+Subject: Re: [PATCH 00/17] nmbug-status: Python-3-compabitility and general\r
+       refactoring\r
+Message-ID: <20140204174823.GS19935@odin.tremily.us>\r
+References: <cover.1391424512.git.wking@tremily.us>\r
+       <m2ha8frjgg.fsf@guru.guru-group.fi>\r
+       <20140204005331.GQ14197@odin.tremily.us>\r
+       <m2fvnzp3uh.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha1;\r
+       protocol="application/pgp-signature"; boundary="yIMHf/Pa6CzSkARF"\r
+Content-Disposition: inline\r
+In-Reply-To: <m2fvnzp3uh.fsf@guru.guru-group.fi>\r
+OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8;\r
+       url=http://tremily.us/pubkey.txt\r
+User-Agent: Mutt/1.5.22 (2013-10-16)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
+       s=q20121106; t=1391536105;\r
+       bh=+XPP2AsZLlErS4V4Lo634BHm78rcAMPyl/NgocjHTh4=;\r
+       h=Received:Received:Received:Date:From:To:Subject:Message-ID:\r
+       MIME-Version:Content-Type;\r
+       b=Vxghxv+K96YO2FX1TE3n5V7exNkqOtpBvMZ+PuUL4eBcG5AmZ6fsMc7ztF0pmyoS+\r
+       khNAaAto9kYMWnuXvufh0a1eBQW6kY0RMVP9GNXQRdARvka2kEQaG/vlPKvp+0zQZp\r
+       w5YLEjSTHRw0snORZGftXBTUTusHMg6d7TZMrkpITJILALiAO3MzL2BnY5aPruge9f\r
+       16mI7iJva95ZBYAs9xHAOlwgekXIA93zjZAuT+f/KyJEmDlbS8ZD1ssziJ/NfKGqlp\r
+       L2Rn6bOBbL+aLviLj3hX6XqdAN9qlAZ0njhEGwcbzKX088Evaxis41CLsORIL1sjSd\r
+       GV7O37McPGX0g==\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\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: Tue, 04 Feb 2014 17:48:34 -0000\r
+\r
+\r
+--yIMHf/Pa6CzSkARF\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Tue, Feb 04, 2014 at 12:30:30PM +0200, Tomi Ollila wrote:\r
+> On Tue, Feb 04 2014, W. Trevor King wrote:\r
+> > On Mon, Feb 03, 2014 at 11:10:23PM +0200, Tomi Ollila wrote:\r
+> >>   File "devel/nmbug/nmbug-status", line 197, in _write_threads\r
+> >>     ).format(**message_display_data))\r
+> >>   File "/usr/lib64/python2.6/codecs.py", line 351, in write\r
+> >>     data, consumed =3D self.encode(object, self.errors)\r
+> >> UnicodeEncodeError: 'ascii' codec can't encode character u'\u017b' in\r
+> >>   position 176: ordinal not in range(128)\r
+> > =E2=80=A6\r
+>=20\r
+> LANG=3Den_US.UTF-8\r
+\r
+My current guess is that LANG is set in your terminal, but that you\r
+ran nmbug-status from a cron job where it wasn't set.  If that's the\r
+case, try adding:\r
+\r
+  export LANG=3Den_US.UTF-8\r
+\r
+to your cron job (or replace with whichever encoding you like).\r
+\r
+We don't care about the preferred language yet, but we could [1].\r
+There's actually not all that much that needs translating for\r
+nmbug-status.\r
+\r
+Cheers,\r
+Trevor\r
+\r
+[1]: http://docs.python.org/3/library/gettext.html\r
+\r
+--=20\r
+This email may be signed or encrypted with GnuPG (http://www.gnupg.org).\r
+For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy\r
+\r
+--yIMHf/Pa6CzSkARF\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: OpenPGP digital signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2.0.22 (GNU/Linux)\r
+\r
+iQIcBAEBAgAGBQJS8SfmAAoJEKKfehoaNkbtWGIQAIuaNVWPTS7xjroshj3JIh16\r
+JsX4L+hFS4DDOXfzRiWp3o/NW+iRKJ01SkYkyPvhN7ec44ZUsCtHV4y7JnVcX4ws\r
+YVHzx5umyvSLFTPvT6+iQf9pGYIbIsW6047/GQ8whWZ2f8ZZitFPYszUWebzmnLf\r
+kG+FX9+Mg6HgH8y3wpsirZJ1JtUfT2Cpl6f4gdRlqceW5PpQX4OLbrhNxmBvfXEM\r
+UcCTmLS9J6FbeXa8SWGZllzGbE+SCOOR3zX0XOnTTmQVVyfFDhQUe/i3esdz2hiw\r
+C5knAjOdtjggoeeOYz/iQbZB7DK5Fj8mfGg3Nz4w7Ozi8bWk9aYQOnNONC8PGKok\r
+7fbRzDuHKnaYKSlEmWVvmrnCHNvQUTJq4HGU0eJxYDDVRFnd+6rtxa/U1e/YhRmM\r
+oLeSfGfKamKmOUx+NsY+vbBU2g9E8Ntb16GLSU0uifK70of0/Xlde/CAxIfB2acY\r
+gIKO8oUJu7QcL+iBLEc7wL/oeWxC2JEFLU1lEB/XajS9XHSn1W8+AC8Juz5m2tdm\r
++t7NLH+pflECObelsC4Hi0MOHFf/86WdpETdHrHcMWQB/MOM2Egov7ZqUkB2IfcE\r
+uRaM3P61PvfuqYNAbIHB+SDHmaRI1Mr646x5GcS+e//0x1P7+WNeowiAp+3yxXeK\r
+Et4w/MPDQ3pMMpnXBjzl\r
+=VcTx\r
+-----END PGP SIGNATURE-----\r
+\r
+--yIMHf/Pa6CzSkARF--\r