Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 05 / b2b2de0002065813dee6e1441ee73ba48246eb
1 Return-Path: <dme@dme.org>\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 78EE6431FBC\r
6         for <notmuch@notmuchmail.org>; Mon, 17 Nov 2014 06:02:30 -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.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001]\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 JfeWIj2Yc0LF for <notmuch@notmuchmail.org>;\r
17         Mon, 17 Nov 2014 06:02:25 -0800 (PST)\r
18 Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com\r
19         [209.85.212.171]) (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 851AD431FB6\r
22         for <notmuch@notmuchmail.org>; Mon, 17 Nov 2014 06:02:25 -0800 (PST)\r
23 Received: by mail-wi0-f171.google.com with SMTP id bs8so3309204wib.16\r
24         for <notmuch@notmuchmail.org>; Mon, 17 Nov 2014 06:02:22 -0800 (PST)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=1e100.net; s=20130820;\r
27         h=x-gm-message-state:to:subject:in-reply-to:references:user-agent\r
28         :from:date:message-id:mime-version:content-type\r
29         :content-transfer-encoding;\r
30         bh=O/W+3AWo3DM1kXojqQoc7rPAnvnUEhycS6vqxK7AfDs=;\r
31         b=atk1/p3KPTYWQwLXQ0cy8rA9LUtmTl5GthElvFzgfETC2XxYcfNDhn3gtEksvoWDTL\r
32         OupL73ojXWgUKwyLYNHeuAV5hwO+J/Tz0nmg5Rllh0U0p0HwDhzhh2CY1bTEDGD6Ry4G\r
33         ZmWLeioIuwDxS3uNeLopMMYJcNeDWFos3RZL/AqWLy++wnmqg/timxzH+t8hm0CBEqIX\r
34         kN67FT7OHZbBYkHWyCfB1RErLfqU3F4AyTHUt+Cu6XrLfB6MfvPtkQAOP+alymP+TIMd\r
35         Fi0tk/wfjvZ8O4Xjmy5hHPR79o0FJWGfYBqHlu1odBBQHlfl4XcCfIu8T5axK9a8qDFr\r
36         HE7w==\r
37 X-Gm-Message-State:\r
38  ALoCoQnSKP4f614T7mZCDx2lKUsU+uM2aeod+GKZ+kdGPl7tufwPmGcHSD/66Qd892PF8bgp5oar\r
39 X-Received: by 10.180.20.201 with SMTP id p9mr31561555wie.67.1416232940950;\r
40         Mon, 17 Nov 2014 06:02:20 -0800 (PST)\r
41 Received: from disaster-area.hh.sledj.net\r
42         ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
43         by mx.google.com with ESMTPSA id\r
44         bc1sm15372262wib.16.2014.11.17.06.02.19 for <multiple recipients>\r
45         (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
46         Mon, 17 Nov 2014 06:02:19 -0800 (PST)\r
47 Received: from localhost (30000@localhost [local]);\r
48         by localhost (OpenSMTPD) with ESMTPA id 77599ec8;\r
49         Mon, 17 Nov 2014 14:02:18 +0000 (UTC)\r
50 To: Lele Gaifax <lele@metapensiero.it>, notmuch@notmuchmail.org\r
51 Subject: Re: Forwarding a mail, with a non-ASCII signature\r
52 In-Reply-To: <87ioifb55d.fsf@nautilus.nautilus>\r
53 References: <87ioifb55d.fsf@nautilus.nautilus>\r
54 User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1\r
55         (x86_64-pc-linux-gnu)\r
56 From: David Edmondson <dme@dme.org>\r
57 Date: Mon, 17 Nov 2014 14:02:18 +0000\r
58 Message-ID: <cunlhna0vth.fsf@gargravarr.hh.sledj.net>\r
59 MIME-Version: 1.0\r
60 Content-Type: text/plain; charset=utf-8\r
61 Content-Transfer-Encoding: quoted-printable\r
62 X-BeenThere: notmuch@notmuchmail.org\r
63 X-Mailman-Version: 2.1.13\r
64 Precedence: list\r
65 List-Id: "Use and development of the notmuch mail system."\r
66         <notmuch.notmuchmail.org>\r
67 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
69 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
70 List-Post: <mailto:notmuch@notmuchmail.org>\r
71 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
72 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
73         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
74 X-List-Received-Date: Mon, 17 Nov 2014 14:02:30 -0000\r
75 \r
76 On Sun, Nov 16 2014, Lele Gaifax wrote:\r
77 > Hi all,\r
78 >\r
79 > as you can see below, my signature contains some non-ASCII characters,\r
80 > and it is stored as UTF-8 (I have `(prefer-coding-system 'utf-8)` in my\r
81 > .emacs.el) in my home as ~/.signature.\r
82 >\r
83 > Recently I started using notmuch with Emacs as the main MUA, using\r
84 > message-mode to send emails. I'm *very* satisfied, BTW!\r
85 >\r
86 > Everything works great, except that when I "forward" an email message:\r
87 > in that case, the "*unsent mail*" buffer contains the original message\r
88 > within a "#mml" tag, followed by my signature, apparently appended as\r
89 > binary (e.g. instead of "vivr=C3=B2" I see "vivr\303\262"). When I try to\r
90 > send it, I get the "Unreadable characters" prompt...\r
91 >\r
92 > I quickly inspected what notmuch-show-forward-message does, but AFAICT\r
93 > it does very little, delegating most of the work to message-mode: but\r
94 > doing the same from Gnus works ok, so I must be missing something.\r
95 >\r
96 > I also tried tweaking the message-default-charset, changing it from nil\r
97 > to utf-8, with the very same result.\r
98 >\r
99 > I'm using Emacs 24.4.51 compiled a few days ago, if that matters.\r
100 \r
101 Could you try this patch please?\r
102 \r
103 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
104 index 6e03f1e..1592ca9 100644\r
105 --- a/emacs/notmuch-show.el\r
106 +++ b/emacs/notmuch-show.el\r
107 @@ -235,9 +235,9 @@ For example, if you wanted to remove an \"unread\" tag =\r
108 and add a\r
109         (let ((buf (generate-new-buffer (concat "*notmuch-msg-" id "*"))))\r
110           (with-current-buffer buf\r
111            (let ((coding-system-for-read 'no-conversion))\r
112 -            (call-process notmuch-command nil t nil "show" "--format=3Draw" id)\r
113 -            ,@body)\r
114 -          (kill-buffer buf))))))\r
115 +            (call-process notmuch-command nil t nil "show" "--format=3Draw" id))\r
116 +          ,@body)\r
117 +        (kill-buffer buf)))))\r
118 =20\r
119  (defun notmuch-show-turn-on-visual-line-mode ()\r
120    "Enable Visual Line mode."\r