--- /dev/null
+Return-Path: <ethan.glasser.camp@gmail.com>\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 8B6C8431FBD\r
+ for <notmuch@notmuchmail.org>; Sun, 18 Nov 2012 12:26:02 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 TL0VcvzlJUZn for <notmuch@notmuchmail.org>;\r
+ Sun, 18 Nov 2012 12:26:00 -0800 (PST)\r
+Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com\r
+ [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id A2843431FB6\r
+ for <notmuch@notmuchmail.org>; Sun, 18 Nov 2012 12:26:00 -0800 (PST)\r
+Received: by mail-qc0-f181.google.com with SMTP id x40so3133671qcp.26\r
+ for <notmuch@notmuchmail.org>; Sun, 18 Nov 2012 12:26:00 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:cc:subject:in-reply-to:references:user-agent:date\r
+ :message-id:mime-version:content-type;\r
+ bh=/ryoEeVbbtbxTcLz5cHxqA3VEqpX7LQmBsVXF7utB84=;\r
+ b=Kz17bchLFc/XgSgzVrrNEp0qTzOdrmY7+SWStZi5xgnp6iRvwUbZH54O7PQ95QfjQP\r
+ TG/n2dA8MHFm8G2bok08af2eqt6BeMwsJUZJ2iAqeBrBeGSblhWLTYLujbGLOQW5o4Yh\r
+ 1193pqZokte9BR8BaLXWinjsNJrDAJ4P+OoVf+obzQyRXgCrMboeOPd/nDxXxU808F5T\r
+ 3m3wID/4W66/IUF6fpXn7yCWFJNW+pf1Kr+MugUzQMPlAFijV4eHgIZY+c9BvQshgK1b\r
+ So2KCvmonciM6KxJWzCeDNYu9aoDfo9IDlop3HbgtymoE+4nLLwcqlEVune0FsDmbc+X\r
+ BjMA==\r
+Received: by 10.224.27.83 with SMTP id h19mr9802221qac.70.1353270360062;\r
+ Sun, 18 Nov 2012 12:26:00 -0800 (PST)\r
+Received: from smtp.gmail.com ([66.114.71.21])\r
+ by mx.google.com with ESMTPS id z9sm4256966qeg.9.2012.11.18.12.25.58\r
+ (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Sun, 18 Nov 2012 12:25:59 -0800 (PST)\r
+From: Ethan Glasser-Camp <ethan.glasser.camp@gmail.com>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 2/2] emacs: less guessing of character set in messages\r
+In-Reply-To: <1353269185-23210-2-git-send-email-tomi.ollila@iki.fi>\r
+References: <id:87txsm23hs.fsf@betacantrips.com>\r
+ <1353269185-23210-1-git-send-email-tomi.ollila@iki.fi>\r
+ <1353269185-23210-2-git-send-email-tomi.ollila@iki.fi>\r
+User-Agent: Notmuch/0.14+45~g6ea9330 (http://notmuchmail.org) Emacs/24.1.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sun, 18 Nov 2012 15:25:56 -0500\r
+Message-ID: <87pq3a1wvf.fsf@betacantrips.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+Cc: tomi.ollila@iki.fi\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: Sun, 18 Nov 2012 20:26:02 -0000\r
+\r
+Tomi Ollila <tomi.ollila@iki.fi> writes:\r
+\r
+> The macro with-current-notmuch-show-message executes command\r
+> `notmuch show --format=raw id:...` which just outputs the contents\r
+> of the mail file verbatim (into temporary buffer). In case e.g. utf-8\r
+> locale is used the temporary buffer has buffer-file-coding-system as\r
+> utf-8. In this case Emacs converts the data to multibyte format, guessing\r
+> that input is in utf-8.\r
+> However, the "raw" (MIME) message may contain octet data in any other\r
+> 8bit format, and as no (MIME-)content spesific handling to the message\r
+> is done at this point, conversion to other formats may lose information.\r
+> By setting coding-system-for-read 'no-conversion drops the conversion part\r
+> and makes this handle input as notmuch-get-bodypart-internal() does.\r
+> This marks the broken test in previous change fixed.\r
+\r
+This looks good to me, though you might need to apply it with notmuch\r
+show --format="mbox" :).\r
+\r
+Ethan\r