Re: [RFC PATCH] test: add devel/test-in-docker.sh
[notmuch-archives.git] / 67 / e74c6bee5498c94bea1afe0e25f5ba453696c2
1 Return-Path: <jani@nikula.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 D93A8431FD2\r
6         for <notmuch@notmuchmail.org>; Sun,  2 Sep 2012 12:58:23 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: -0.7\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
13         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 mWJmzvQmifko for <notmuch@notmuchmail.org>;\r
17         Sun,  2 Sep 2012 12:58:22 -0700 (PDT)\r
18 Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com\r
19         [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 791F1431FB6\r
22         for <notmuch@notmuchmail.org>; Sun,  2 Sep 2012 12:58:19 -0700 (PDT)\r
23 Received: by mail-lb0-f181.google.com with SMTP id gk1so2402453lbb.26\r
24         for <notmuch@notmuchmail.org>; Sun, 02 Sep 2012 12:58:19 -0700 (PDT)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=google.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references\r
28         :in-reply-to:references:x-gm-message-state;\r
29         bh=Mkn9TK1sHf5CySfoiOCqgWqcUzogWz45q6lpv8KJebg=;\r
30         b=av0ST6I0F1nqbGE1cop4VMGD7EeftKPTtay32DnitSuVm5qXhM68P0PGTImI455lmG\r
31         2lNPiiK8JsjcGa9NRETZrfn2N/UEkzE9EydtvD3QCuzjm96vceQGrAZaQmXS29dWVO2h\r
32         Zk4osjfbjtCUatI+JtyJxp+zu1M6/OKCwBH9OXvZNsjO7T4qfCJY42LxpJvBqkY1G8QK\r
33         rWrBDapsn0xYqt7e5tQtP3N90Ipicx+JU38DZpiVBisiLyi01QIAUIyb3U8eqylDp6KT\r
34         ys2zNuwFV5sRU+Pv2i2nFtsVISMmU4U5N3pEoufqvOyMoP6n2Af0vLnp6Jis4bbnd9Bd\r
35         syUQ==\r
36 Received: by 10.152.146.163 with SMTP id td3mr12139408lab.26.1346615899135;\r
37         Sun, 02 Sep 2012 12:58:19 -0700 (PDT)\r
38 Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi.\r
39         [80.223.81.27])\r
40         by mx.google.com with ESMTPS id j3sm2752411lbh.0.2012.09.02.12.58.17\r
41         (version=SSLv3 cipher=OTHER); Sun, 02 Sep 2012 12:58:18 -0700 (PDT)\r
42 From: Jani Nikula <jani@nikula.org>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH 3/6] emacs: use new tag change helper to mark messages as\r
45         replied\r
46 Date: Sun,  2 Sep 2012 22:58:02 +0300\r
47 Message-Id:\r
48  <0e05c186f028a6d526dd74b4244c39faca3a4960.1346614915.git.jani@nikula.org>\r
49 X-Mailer: git-send-email 1.7.9.5\r
50 In-Reply-To: <cover.1346614915.git.jani@nikula.org>\r
51 References: <cover.1346614915.git.jani@nikula.org>\r
52 In-Reply-To: <cover.1346614915.git.jani@nikula.org>\r
53 References: <cover.1346614915.git.jani@nikula.org>\r
54 X-Gm-Message-State:\r
55  ALoCoQm89L6VYbTCbxJDQYGcYd1QTEic7cYoKzb/k2jB7Q+rCyfvSIFL/Ch/DZIy708HGXQrsBWU\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Sun, 02 Sep 2012 19:58:24 -0000\r
69 \r
70 Clarify documentation while at it.\r
71 ---\r
72  emacs/notmuch-message.el |   24 ++++++++++--------------\r
73  1 file changed, 10 insertions(+), 14 deletions(-)\r
74 \r
75 diff --git a/emacs/notmuch-message.el b/emacs/notmuch-message.el\r
76 index 3798046..4dc4883 100644\r
77 --- a/emacs/notmuch-message.el\r
78 +++ b/emacs/notmuch-message.el\r
79 @@ -23,14 +23,16 @@\r
80  (require 'notmuch-tag)\r
81  (require 'notmuch-mua)\r
82  \r
83 -(defcustom notmuch-message-replied-tags '("replied")\r
84 -  "Tags to be automatically added to or removed from a message when it is replied to.\r
85 -Any tag in the list will be added to a replied message or,\r
86 -if it is prefaced with a \"-\", removed.\r
87 +(defcustom notmuch-message-replied-tags '("+replied")\r
88 +  "List of tag changes to apply to a message when it has been replied to.\r
89 +\r
90 +Tags starting with \"+\" (or not starting with either \"+\" or\r
91 +\"-\") in the list will be added, and tags starting with \"-\"\r
92 +will be removed from the message being replied to.\r
93  \r
94  For example, if you wanted to add a \"replied\" tag and remove\r
95 -the \"inbox\" and \"todo\", you would set\r
96 -    (\"replied\" \"-inbox\" \"-todo\"\)"\r
97 +the \"inbox\" and \"todo\" tags, you would set:\r
98 +    (\"+replied\" \"-inbox\" \"-todo\"\)"\r
99    :type '(repeat string)\r
100    :group 'notmuch-send)\r
101  \r
102 @@ -38,14 +40,8 @@ the \"inbox\" and \"todo\", you would set\r
103    ;; get the in-reply-to header and parse it for the message id.\r
104    (let ((rep (mail-header-parse-addresses (message-field-value "In-Reply-To"))))\r
105      (when (and notmuch-message-replied-tags rep)\r
106 -      ;; add a "+" to any tag that is doesn't already begin with a "+"\r
107 -      ;; or "-"\r
108 -      (let ((tags (mapcar (lambda (str)\r
109 -                           (if (not (string-match "^[+-]" str))\r
110 -                               (concat "+" str)\r
111 -                             str))\r
112 -                         notmuch-message-replied-tags)))\r
113 -       (funcall 'notmuch-tag (notmuch-id-to-query (car (car rep))) tags)))))\r
114 +      (funcall 'notmuch-tag (notmuch-id-to-query (car (car rep)))\r
115 +              (notmuch-tag-change-list notmuch-message-replied-tags)))))\r
116  \r
117  (add-hook 'message-send-hook 'notmuch-message-mark-replied)\r
118  \r
119 -- \r
120 1.7.9.5\r
121 \r