Re: [PATCH v3] nmbug: Translate to Python
[notmuch-archives.git] / 87 / 8e205d8532dbfce997e02378aacc5a67e7bf41
1 Return-Path: <pieter@praet.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 A52B6431FAF\r
6         for <notmuch@notmuchmail.org>; Thu, 19 Jan 2012 14:25:23 -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.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id OyGS15imj5SI for <notmuch@notmuchmail.org>;\r
16         Thu, 19 Jan 2012 14:25:23 -0800 (PST)\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
18  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
19  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
20  D6B36431FAE    for <notmuch@notmuchmail.org>; Thu, 19 Jan 2012 14:25:22 -0800\r
21  (PST)\r
22 Received: by wgbdt12 with SMTP id dt12so447008wgb.2\r
23         for <notmuch@notmuchmail.org>; Thu, 19 Jan 2012 14:25:20 -0800 (PST)\r
24 Received: by 10.180.93.132 with SMTP id cu4mr42157627wib.9.1327011920213;\r
25         Thu, 19 Jan 2012 14:25:20 -0800 (PST)\r
26 Received: from localhost ([109.131.97.13])\r
27         by mx.google.com with ESMTPS id gy6sm30423674wib.11.2012.01.19.14.25.19\r
28         (version=TLSv1/SSLv3 cipher=OTHER);\r
29         Thu, 19 Jan 2012 14:25:19 -0800 (PST)\r
30 From: Pieter Praet <pieter@praet.org>\r
31 To: Aaron Ecay <aaronecay@gmail.com>, notmuch@notmuchmail.org\r
32 Subject: Re: [PATCH] emacs: Quote MML tags in replies\r
33 In-Reply-To: <1326998589-37187-1-git-send-email-aaronecay@gmail.com>\r
34 References: <1326998589-37187-1-git-send-email-aaronecay@gmail.com>\r
35 User-Agent: Notmuch/0.11+99~gab86e73 (http://notmuchmail.org) Emacs/23.3.1\r
36         (x86_64-unknown-linux-gnu)\r
37 Date: Thu, 19 Jan 2012 23:23:29 +0100\r
38 Message-ID: <87wr8nuyam.fsf@praet.org>\r
39 MIME-Version: 1.0\r
40 Content-Type: text/plain; charset=utf-8\r
41 Content-Transfer-Encoding: quoted-printable\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Thu, 19 Jan 2012 22:25:23 -0000\r
55 \r
56 On Thu, 19 Jan 2012 13:43:09 -0500, Aaron Ecay <aaronecay@gmail.com> wrote:\r
57 > Emacs message-mode uses certain text strings to indicate how to attach\r
58 > files to outgoing mail.  If these are present in the text of an email,\r
59 > and a user is tricked into replying to the message, the user=E2=80=99s fi=\r
60 les\r
61 > could be exposed.\r
62 > ---\r
63 >=20\r
64 > To demonstrate this, open a reply to this message then remove the\r
65 > exclamation marks after the hash marks below.  Create a file in your\r
66 > home directory called passwd.  Then press C-u M-x mml-preview.  A\r
67 > (possibly base64-encoded) version of your ~/passwd file will replace\r
68 > the following lines:\r
69 >=20\r
70 > <#!part type=3D"application/octet-stream" filename=3D"~/passwd"\r
71 > disposition=3Dattachment description=3Dfoo>\r
72 > <#!/part>\r
73 >=20\r
74 > It works equally well (and more dangerously) with /etc/passwd, but I\r
75 > didn't use that filename here to avoid the danger of someone\r
76 > accidentally attaching their /etc/passwd to a reply in this thread!\r
77 >=20\r
78 >  emacs/notmuch-mua.el |    3 ++-\r
79 >  1 files changed, 2 insertions(+), 1 deletions(-)\r
80 >=20\r
81 > diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
82 > index d8ab822..c25c6b9 100644\r
83 > --- a/emacs/notmuch-mua.el\r
84 > +++ b/emacs/notmuch-mua.el\r
85 > @@ -115,7 +115,8 @@ list."\r
86 >      (push-mark))\r
87 >    (set-buffer-modified-p nil)\r
88 >=20=20\r
89 > -  (message-goto-body))\r
90 > +  (message-goto-body)\r
91 > +  (mml-quote-region (point) (mark)))\r
92 >=20=20\r
93 >  (defun notmuch-mua-forward-message ()\r
94 >    (message-forward)\r
95 > --=20\r
96 > 1.7.8.3\r
97 >=20\r
98 > _______________________________________________\r
99 > notmuch mailing list\r
100 > notmuch@notmuchmail.org\r
101 > http://notmuchmail.org/mailman/listinfo/notmuch\r
102 \r
103 Wow, nice catch!  You've just earned yourself a raise!\r
104 \r
105 An urgent +1 !\r
106 \r
107 \r
108 ### OT:\r
109 For some reason, `mml-quote-region' explicitly re-quotes\r
110 already quoted MML tags:\r
111 \r
112   "<#!*/?\\(multipart\\|part\\|external\\|mml\\)"\r
113 \r
114 Why is that ?\r
115 \r
116 \r
117 Peace\r
118 \r
119 --=20\r
120 Pieter\r