Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / ef / 54748501fc73d87494b6c15d92d0f33ac80b95
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 BC57B6DE02AD\r
6  for <notmuch@notmuchmail.org>; Fri, 10 Jun 2016 16:03:10 -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.335\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.335 tagged_above=-999 required=5 tests=[AWL=0.235,\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 FbvilGyUefp6 for <notmuch@notmuchmail.org>;\r
19  Fri, 10 Jun 2016 16:03:03 -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 A321D6DE0032 for\r
22  <notmuch@notmuchmail.org>; Fri, 10 Jun 2016 16:03:02 -0700 (PDT)\r
23 Received: by mail-wm0-f51.google.com with SMTP id k204so9829156wmk.0\r
24  for <notmuch@notmuchmail.org>; Fri, 10 Jun 2016 16:03:02 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26  h=from:to:cc:subject:date:message-id;\r
27  bh=mu4zwzcso80+LKONH7HuOFyFs9Jnmv+LXakPgInR9pE=;\r
28  b=wf3zcpcNwU6uMYU6TZ3avl4TW95t/sxXnKybMq+mAsNPwLh6KfpL5IEGcjkbO7j4bE\r
29  O87eOGR6iRKH13l2oFy/5hUHimh5XDrHFyv7f2VtFTlmaTbgBLeReAg4nnk+BzXONSpy\r
30  xxXoPKOJXNEUsODmtkIGUc/hHM1id+/PLffwpdamOUscqHpdkWADX7rWQRERxhLrqlso\r
31  FFXmzfDRRuDYWKkZceI8wcC+4TKMrBBUsGxpfZtBLgfRq0Fjp8gh51gg4QCMsMx62vj3\r
32  wDthaCsmVdrQXQ2zttOnq8ZtLOcKFt+jj4QAb0wx3V87ItM1PSQ7uuSHSSzomFYqbXFx\r
33  RdLw==\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:cc:subject:date:message-id;\r
37  bh=mu4zwzcso80+LKONH7HuOFyFs9Jnmv+LXakPgInR9pE=;\r
38  b=BtMOVdS2zwmwRDmew9PM++Xe9jf/3frcsUDNSL4Fg7KkEsCWnFuF5ry0rwflbdT6pA\r
39  4aqoxBQLyT5PaGXlAzY1qeYTKQgzHgtuB2WmBaTKD2ZivRh8n+Qcu7IsHSc6mwYhsZuB\r
40  un78viiFPPMvsiJQQWMy6BbIl1ErpBW/d+voRcZGdwIG/nss5auLxPqd7XVGcEZj1l4u\r
41  x7ItZuz3Wz3/2qTS5/xCirEKMOVE3blqrWXCoLnJScmzmdtsmOAYoMZxMSjPwahzAjkX\r
42  9iueUlwoy96OySCX5tNaHGpeDv2/S/g5V4V193N02PUxkxcWGRks7zmanT3Ox1Rck7Zf\r
43  bgdg==\r
44 X-Gm-Message-State:\r
45  ALyK8tLcoNEEuvs5wdjc0gyBCrgTtY+xXUWcbNpp3WZ6zLEuk1V+um3icI77QjMjWlFyWw==\r
46 X-Received: by 10.194.48.7 with SMTP id h7mr4102213wjn.9.1465599780788;\r
47  Fri, 10 Jun 2016 16:03:00 -0700 (PDT)\r
48 Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
49  by smtp.gmail.com with ESMTPSA id 75sm1266904wml.15.2016.06.10.16.02.59\r
50  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
51  Fri, 10 Jun 2016 16:03:00 -0700 (PDT)\r
52 From: Mark Walters <markwalters1009@gmail.com>\r
53 To: notmuch@notmuchmail.org\r
54 Subject: [PATCH 0/6] Use notmuch insert for fcc\r
55 Date: Sat, 11 Jun 2016 00:02:46 +0100\r
56 Message-Id: <1465599772-10297-1-git-send-email-markwalters1009@gmail.com>\r
57 X-Mailer: git-send-email 2.1.4\r
58 X-BeenThere: notmuch@notmuchmail.org\r
59 X-Mailman-Version: 2.1.20\r
60 Precedence: list\r
61 List-Id: "Use and development of the notmuch mail system."\r
62  <notmuch.notmuchmail.org>\r
63 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
64  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
66 List-Post: <mailto:notmuch@notmuchmail.org>\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
68 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
69  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
70 X-List-Received-Date: Fri, 10 Jun 2016 23:03:10 -0000\r
71 \r
72 This series allows the use of notmuch insert for fcc. It is rather\r
73 larger than I would like but I am fairly happy with the user\r
74 experience. A defcustom controls whether to use notmuch insert or file\r
75 fcc.\r
76 \r
77 The syntax in the insert case is\r
78 \r
79 Fcc: folder +tag1 -tag2\r
80 \r
81 which inserts the message in folder, and +tag1 and -tag2 changes (if\r
82 present) are applied afterwards.\r
83 \r
84 Since setting an fcc-header to "| notmuch insert --folder=sent"\r
85 essentially works, I will try to justify why the series ends this\r
86 big. The main reason is error handling: the pipe as above does no\r
87 error handling, so if the notmuch database is locked the fcc will be\r
88 silently lost. Unfortunately message-do-fcc which handles fcc is quite\r
89 inflexible and always passes full filename as fcc, which prevents the\r
90 syntax given above.\r
91 \r
92 Thus to get this syntax we need to extract a local copy of\r
93 message-do-fcc which we simplify and rejig for our needs. The exact\r
94 rejigged form is in preparation for the postpone/resume/draft patches.\r
95 \r
96 We could get rid of file fcc, but some people might still want it, and\r
97 it is used in the test suite, including by some non-emacs tests (via\r
98 emacs_fcc_message in test-lib.sh) so I am happier to keep it for now.\r
99 \r
100 Best wishes\r
101 \r
102 Mark\r
103 \r
104 \r
105 \r
106 Mark Walters (6):\r
107   emacs: notmuch-check-exit-status bugfix\r
108   emacs: maildir-fcc: prepare for use of notmuch insert\r
109   emacs: maildir import message-do-fcc\r
110   emacs: simplify our local copy of message-do-fcc\r
111   Modify our local copy of message-do-fcc\r
112   emacs: maildir: add the actual insert code\r
113 \r
114  emacs/notmuch-lib.el         |  10 ++-\r
115  emacs/notmuch-maildir-fcc.el | 192 +++++++++++++++++++++++++++++++++++++------\r
116  emacs/notmuch-mua.el         |  10 +--\r
117  test/test-lib.el             |   5 ++\r
118  4 files changed, 185 insertions(+), 32 deletions(-)\r
119 \r
120 -- \r
121 2.1.4\r
122 \r