Re: [WIP PATCH] emacs: query: completion for from: in searches
[notmuch-archives.git] / 03 / 2a06e1e71b618b7663a55cff3dd327319c1f4a
1 Return-Path: <markwalters1009@gmail.com>\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 200AA6DE01D0\r
6  for <notmuch@notmuchmail.org>; Thu,  2 Jun 2016 11:21:56 -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.321\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.321 tagged_above=-999 required=5 tests=[AWL=0.249,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13  FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,\r
14  RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001]\r
15  autolearn=disabled\r
16 Received: from arlo.cworth.org ([127.0.0.1])\r
17  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
18  with ESMTP id CGrk6xHCaR2r for <notmuch@notmuchmail.org>;\r
19  Thu,  2 Jun 2016 11:21:48 -0700 (PDT)\r
20 Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com\r
21  [74.125.82.51]) by arlo.cworth.org (Postfix) with ESMTPS id 889796DE00DB for\r
22  <notmuch@notmuchmail.org>; Thu,  2 Jun 2016 11:21:47 -0700 (PDT)\r
23 Received: by mail-wm0-f51.google.com with SMTP id a20so77757805wma.1\r
24  for <notmuch@notmuchmail.org>; Thu, 02 Jun 2016 11:21:47 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26  h=from:to:subject:user-agent:date:message-id:mime-version;\r
27  bh=5YHwp0e2vm4sbCLGnbR2jEG5cu5rwLZnA3F6ytqL+Io=;\r
28  b=V6w7uq4I3QbchmVpjs+jLfYMP5WJ6yGKvmWv+bpLNKX4QYVbwwYgvn1gEwX3Qn4LI9\r
29  i42ykdrKf0NPIexIUSMFXZlZDLuL7CGnZjdGSN+593jcfP7rYbxidmv/YRaJkQ9vqt5k\r
30  YD+icaVc+2EjzcuvO1a8JZslcSSCfiCSt/H0ZtDzliLtEPZrr5mjfyaPpY45tYuHXyUI\r
31  fvpTXq3y84ZZAO3bul8lFSXMqMYSxHzQ7+/eXu7gkEZj4isQKgfZ0NzEekNnfzizw23/\r
32  vqcz5qnHqiJY6HX/Pmzb/XtGQ0MwHpxLAz3lpib9Zq1d5TthdNe85pOSSmwX4X8GiApY\r
33  fvuw==\r
34 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
35  d=1e100.net; s=20130820;\r
36  h=x-gm-message-state:from:to:subject:user-agent:date:message-id\r
37  :mime-version;\r
38  bh=5YHwp0e2vm4sbCLGnbR2jEG5cu5rwLZnA3F6ytqL+Io=;\r
39  b=IHvxfr6DbARWgTsgK7Km52RjHPD7w9QWFBlGD0oUN1TEu4CGYdnK7/Wnow0H469dUG\r
40  C4Jqa4xJNzeQeL2BjXP/mn4sQ0UaQM7W+rbjQBWDV+WcUs2d1X9pWNpjTn+VGtRQ7KPd\r
41  Ymc2XnE3dadZatjq0+YYpMCYhAM2YzVvJzfm+1/Ptajl3mYJ/MijoTNZFW7tnURrctqI\r
42  xPHK5KCNinTjUYjWpGGeG4BkpxTe2BJ7f1XvxoaPi1PU72G5LsgVyZ+u/ijcL0PFK+1b\r
43  mEEWVPlJdgJOVgDadjsMv4fyp6uGM2u86qiXKCPCrrjYLRK41b2y3p5lrmMWxHVUkzMj\r
44  EBEw==\r
45 X-Gm-Message-State:\r
46  ALyK8tLcniwkP4Enkm0SVrDtowdVBG+PGzLpxgrJWQknbVeR83IYXn2I0HT2YNOPmLIv8A==\r
47 X-Received: by 10.194.133.194 with SMTP id pe2mr9723384wjb.5.1464891705760;\r
48  Thu, 02 Jun 2016 11:21:45 -0700 (PDT)\r
49 Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
50  by smtp.gmail.com with ESMTPSA id c7sm1758402wji.38.2016.06.02.11.21.44\r
51  for <notmuch@notmuchmail.org>\r
52  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
53  Thu, 02 Jun 2016 11:21:45 -0700 (PDT)\r
54 From: Mark Walters <markwalters1009@gmail.com>\r
55 To: notmuch@notmuchmail.org\r
56 Subject: Emacs: postponing messages\r
57 User-Agent: Notmuch/0.22~rc1+4~g410fd6d (http://notmuchmail.org) Emacs/24.4.1\r
58  (x86_64-pc-linux-gnu)\r
59 Date: Thu, 02 Jun 2016 19:21:44 +0100\r
60 Message-ID: <87mvn330zr.fsf@qmul.ac.uk>\r
61 MIME-Version: 1.0\r
62 Content-Type: text/plain\r
63 X-BeenThere: notmuch@notmuchmail.org\r
64 X-Mailman-Version: 2.1.20\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: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
74  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
75 X-List-Received-Date: Thu, 02 Jun 2016 18:21:56 -0000\r
76 \r
77 \r
78 Dear All\r
79 \r
80 There was some discussion on irc yesterday about a better way of\r
81 postponing message when using the emacs frontend. I think getting a\r
82 moderately nice interface should be quite easy (see below) but there are\r
83 some corner cases on what *should* happen that I would like to resolve\r
84 before trying to implement anything.\r
85 \r
86 My broad idea for postpone is to take the partial message, use notmuch\r
87 insert to put it in the database with a "postponed" tag, and then on\r
88 resume fetch the raw message and go into notmuch-message-mode, and also\r
89 either add a deleted tag to the resumed message, or better actually\r
90 delete the resumed message. Finally, we would add postponed to the\r
91 excluded tags list, so that postponed messages only show up when\r
92 searched for.\r
93 \r
94 Now the main difficulty I see is what to do with attachments.\r
95 \r
96 If we just leave the mml #part markers in the message then the file\r
97 might have disappeared by the time we resume (or could even be a\r
98 different file). This would be a particular problem if people attach\r
99 files that are in /tmp say.\r
100 \r
101 Further the way rfc822 forwarding works (ie the default forwarding in\r
102 notmuch/emacs) is to put each attachment of the message that is being\r
103 forwarded into its own emacs buffer, and include these buffers via the\r
104 mml markers. These buffers would all disappear if the user restarts\r
105 emacs between postponing and resume.\r
106 \r
107 An alternative would be to attach the attachments with the postponed\r
108 message. This is probably doable by writing the message (as if being\r
109 fcc'd) to notmuch insert, and then using the mime-to-mml function to\r
110 reverse the process. The downside here is that now the attached file is\r
111 not the current file in the filesystem when you send -- ie its different\r
112 from the normal case.\r
113 \r
114 Any thoughts or comments very gratefully received!\r
115 \r
116 Best wishes\r
117 \r
118 Mark\r
119 \r
120 \r