Applying patches directly from emails?
[notmuch-archives.git] / 84 / 3cf43a1ab3d3a14ed0103b50e61e4b79bf2c92
1 Return-Path: <tomi.ollila@iki.fi>\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 arlo.cworth.org (Postfix) with ESMTP id 1537E6DE01D0\r
6  for <notmuch@notmuchmail.org>; Sun,  5 Jun 2016 03:43:49 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.578\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.578 tagged_above=-999 required=5 tests=[AWL=-0.074,\r
12   SPF_NEUTRAL=0.652] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id GOBHb_aVrFjd for <notmuch@notmuchmail.org>;\r
16  Sun,  5 Jun 2016 03:43:41 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18  by arlo.cworth.org (Postfix) with ESMTP id E6AFF6DE01F7\r
19  for <notmuch@notmuchmail.org>; Sun,  5 Jun 2016 03:43:40 -0700 (PDT)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21  by guru.guru-group.fi (Postfix) with ESMTP id CBFB410019D;\r
22  Sun,  5 Jun 2016 13:43:26 +0300 (EEST)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org\r
25 Subject: Re: [PATCH v3] emacs:  postpone/resume support\r
26 In-Reply-To: <1465001026-29392-1-git-send-email-markwalters1009@gmail.com>\r
27 References: <1465001026-29392-1-git-send-email-markwalters1009@gmail.com>\r
28 User-Agent: Notmuch/0.22+32~gd4854c5 (http://notmuchmail.org) Emacs/24.5.1\r
29  (x86_64-unknown-linux-gnu)\r
30 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
31  $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
32  !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
33 Date: Sun, 05 Jun 2016 13:43:26 +0300\r
34 Message-ID: <m2y46jrk4x.fsf@guru.guru-group.fi>\r
35 MIME-Version: 1.0\r
36 Content-Type: text/plain\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.20\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41  <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
43  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
48  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Sun, 05 Jun 2016 10:43:49 -0000\r
50 \r
51 On Sat, Jun 04 2016, Mark Walters <markwalters1009@gmail.com> wrote:\r
52 \r
53 > This provides preliminary support for postponing and resuming in the\r
54 > emacs frontend. On postponing it uses notmuch insert to put the\r
55 > message in the notmuch database; resume gets the raw file from notmuch\r
56 > and using the emacs function mime-to-mml reconstructs the message\r
57 > (including attachments).\r
58 >\r
59 > Current bindings are C-x C-s to save a draft, C-c C-p to postpone a\r
60 \r
61 According to the discussion on IRC this feature seems like a thing\r
62 many people are enthusiastically eager to have...\r
63 \r
64 ... but I am not -- I've been happy with the current draft handling\r
65 (yes, I had to set message-save-directory)...\r
66 \r
67 ... but I think I am not biased when I think that if ctrl-x ctrl-s\r
68 does something more magical than simple (save-buffer) in buffers that\r
69 looks like text editing buffer, that is going to be unexpected disturbing\r
70 functionality to someone (else like me)...\r
71 \r
72 ... I can easily add (and will do if this functionaly lands... :):\r
73 \r
74 (put 'notmuch-message-save-draft 'disabled t)\r
75 (define-key notmuch-message-mode-map (kbd "C-x C-s") #'save-buffer)\r
76 \r
77 to my $HOME/.emacs.d/notmuch-config.el\r
78 \r
79 (or actually my init-notmuch.el which is in my git-clonable dotfiles so it\r
80 goes automatically everywhere; notmuch-config.el is for system-local configs)\r
81 \r
82 but how are others protected?\r
83 \r
84 It might be that no-one else notices nor cares (or they can handle the\r
85 situation themselves). anyway, now if this lands and we get tons of\r
86 angry responses then I can say 'I said so' >;/\r
87 \r
88 Tomi\r
89 \r
90 PS: the brief look I had to the code I can say Mark has done pretty good\r
91 work with it.\r
92 \r
93 \r
94 > draft (save and exit compose buffer), and e to resume a draft from\r
95 > show or tree mode.\r
96 >\r
97 > Previous drafts get tagged deleted on subsequent saves, or on the\r
98 > message being sent.\r
99 >\r
100 > Each draft gets its own message-id, and we use the namespace\r
101 > draft-.... for draft message ids (so, at least for most people, drafts\r
102 > are easily distinguisable).\r
103 > ---\r
104 >\r
105 > Sorry to be rather spamming the list. This is another version of the\r
106 > postpone/resume series. This replaces the third patch in the series at\r
107 > id:1464976195-23134-1-git-send-email-markwalters1009@gmail.com (so\r
108 > should be applied on top of the first two).\r
109 >\r
110 > There are three main changes --\r
111 >\r
112 > 1) It seems that editing an already sent message does work -- as it is\r
113 > not heavily tested we warn before doing it. But now when you send the\r
114 > new version it does not tag the old version as deleted (we only tag\r
115 > drafts deleted).\r
116 >\r
117 > 2) We quote secure mml tags before saving. This avoids problems with\r
118 > signing the wrong message, stale signatures, and using the wrong keys\r
119 > for encryption. Note the draft message will be stored in the mail\r
120 > store unencrypted.\r
121 >\r
122 > 3) You can choose to quote more mml tags than just secure; there is a\r
123 > custom variable notmuch-message-quoted-tags under notmuch-send which\r
124 > should be a list of tags to quote. If you set it to '("secure" "part")\r
125 > then attachments won't be saved with the draft. This may be desired in\r
126 > some cases (but may break things like postponing rfc822 forwarded\r
127 > messages).  Anyway the option is there for anyone who wants to test!\r
128 >\r
129 > Best wishes\r
130 >\r
131 > Mark\r
132 >\r
133 >\r