Re: Error with contrib/notmuch-pick
[notmuch-archives.git] / e0 / d8799b9c64f4ad9f2cda0a851522dfb5db9340
1 Return-Path: <m.walters@qmul.ac.uk>\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 B52B5429E33\r
6         for <notmuch@notmuchmail.org>; Fri,  6 Jan 2012 02:27:24 -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: -1.098\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5\r
12         tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
13         NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] 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 2o4OuFHjUYhy for <notmuch@notmuchmail.org>;\r
17         Fri,  6 Jan 2012 02:27:24 -0800 (PST)\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id EFFCC429E32\r
22         for <notmuch@notmuchmail.org>; Fri,  6 Jan 2012 02:27:23 -0800 (PST)\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
24         by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
25         (envelope-from <m.walters@qmul.ac.uk>)\r
26         id 1Rj713-00048T-Q4; Fri, 06 Jan 2012 10:27:20 +0000\r
27 Received: from 94-192-233-223.zone6.bethere.co.uk ([94.192.233.223]\r
28         helo=localhost)\r
29         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)\r
30         (envelope-from <m.walters@qmul.ac.uk>)\r
31         id 1Rj713-0006Oy-HL; Fri, 06 Jan 2012 10:27:17 +0000\r
32 From: Mark Walters <markwalters1009@gmail.com>\r
33 To: David Edmondson <dme@dme.org>, notmuch@notmuchmail.org\r
34 Subject: Re: Exporting mime email\r
35 In-Reply-To: <cunehvd44a8.fsf@hotblack-desiato.hh.sledj.net>\r
36 References: <87hb09y8p8.fsf@qmul.ac.uk>\r
37         <cunehvd44a8.fsf@hotblack-desiato.hh.sledj.net>\r
38 User-Agent: Notmuch/0.10.2+183~g99cd7be (http://notmuchmail.org) Emacs/23.3.1\r
39         (i486-pc-linux-gnu)\r
40 Date: Fri, 06 Jan 2012 10:27:16 +0000\r
41 Message-ID: <87k455p1mj.fsf@qmul.ac.uk>\r
42 MIME-Version: 1.0\r
43 Content-Type: text/plain; charset=us-ascii\r
44 X-Sender-Host-Address: 94.192.233.223\r
45 X-QM-SPAM-Info: Sender has good ham record.  :)\r
46 X-QM-Body-MD5: 5f70d7bd96edbe0a5d2942224c5ef731 (of first 20000 bytes)\r
47 X-SpamAssassin-Score: -1.8\r
48 X-SpamAssassin-SpamBar: -\r
49 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
50         determine if it is\r
51         spam. We require at least 5.0 points to mark a message as spam.\r
52         This message scored -1.8 points.\r
53         Summary of the scoring: \r
54         * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\r
55         *      medium trust\r
56         *      [138.37.6.40 listed in list.dnswl.org]\r
57         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
58         provider *      (markwalters1009[at]gmail.com)\r
59         * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay\r
60         *      domain\r
61         *  0.5 AWL AWL: From: address is in the auto white-list\r
62 X-QM-Scan-Virus: ClamAV says the message is clean\r
63 X-BeenThere: notmuch@notmuchmail.org\r
64 X-Mailman-Version: 2.1.13\r
65 Precedence: list\r
66 List-Id: "Use and development of the notmuch mail system."\r
67         <notmuch.notmuchmail.org>\r
68 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
69         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
70 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
71 List-Post: <mailto:notmuch@notmuchmail.org>\r
72 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
73 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
74         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
75 X-List-Received-Date: Fri, 06 Jan 2012 10:27:24 -0000\r
76 \r
77 \r
78 Hello\r
79 \r
80 On Fri, 06 Jan 2012 08:35:27 +0000, David Edmondson <dme@dme.org> wrote:\r
81 > On Fri, 06 Jan 2012 00:29:39 +0000, Mark Walters <markwalters1009@gmail.com> wrote:\r
82 > > What is the best way of exporting/saving as text a mime-encoded email\r
83 > > from the emacs interface (e.g, if I want to save a mime-encoded email\r
84 > > containing a patch)?\r
85 > > \r
86 > > For non-mime emails View-raw is fine, but with mime encoded emails such\r
87 > > as (picked pretty much at random)\r
88 > > id:"1325240897-27525-1-git-send-email-dme@dme.org"\r
89 > > I haven't found any non-hack method.\r
90\r
91 > That message is 8bit UTF-8 at my end. Saving it use '|' works just fine\r
92 > for me. What encoding do you see?\r
93 \r
94 Does saving the message like this give you a file you can apply directly\r
95 with the patch command? When I save it (using | or from view-raw) I get\r
96 a message which looks like\r
97 \r
98 (Delivery headers)\r
99 From: ...\r
100 To: ...\r
101 Subject: =?UTF-8?q?=5BPATCH=5D=20emacs=3A=20Improved=20printing=20support=2E?=\r
102 Date: ..\r
103 (some X and list headers)\r
104 MIME-Version: 1.0\r
105 Content-Type: text/plain; charset="utf-8"\r
106 Content-Transfer-Encoding: base64\r
107 Sender: notmuch-bounces@notmuchmail.org\r
108 Errors-To: notmuch-bounces@notmuchmail.org\r
109 \r
110 QWRkIHZhcmlvdXMgZnVuY3Rpb25zIHRvIHByaW50IG5vdG11Y2ggbWVzc2FnZXMgYW5kIHRpZSB0\r
111 aGVtIHRvZ2V0aGVyCndpdGggYSBzaW1wbGUgZnJvbnRlbmQuIE5vIGtleWJpbmRpbmcgaXMgY3Vy\r
112 cmVudGx5IG1hZGUgdG8gZW5jb3VyYWdlCnBhcGVyIHNhdmluZy4KLS0tCgpSZXN1cnJlY3Rpbmcg\r
113 .. for 100 lines or so\r
114 \r
115 The saved file is identical to the file  in my maildir. But feeding it\r
116 to patch in the form  patch -p1 < exported_file does not work.\r
117 \r
118 I have just discovered git am which solves this problem for patches but\r
119 I think it might be useful to be able to export the plain-text email\r
120 sometimes.\r
121 \r
122 (If this is all some messed up utf-8 settings my end then many apologies\r
123 for the noise)\r
124 \r
125 Many thanks \r
126 \r
127 Mark\r
128 \r
129 \r
130 \r
131 \r