Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 5c / 1db0c9cf9329b0d91c1a404d85b8cbee49b580
1 Return-Path: <novalazy@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 olra.theworths.org (Postfix) with ESMTP id 68082431FC0\r
6         for <notmuch@notmuchmail.org>; Wed, 20 Jun 2012 06:29:38 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, 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 hDcrxwT93ZB2 for <notmuch@notmuchmail.org>;\r
17         Wed, 20 Jun 2012 06:29:38 -0700 (PDT)\r
18 Received: from mail-pz0-f53.google.com (mail-pz0-f53.google.com\r
19         [209.85.210.53]) (using TLSv1 with cipher RC4-MD5 (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id D0938431FAF\r
22         for <notmuch@notmuchmail.org>; Wed, 20 Jun 2012 06:29:37 -0700 (PDT)\r
23 Received: by mail-pz0-f53.google.com with SMTP id g9so12291942dad.26\r
24         for <notmuch@notmuchmail.org>; Wed, 20 Jun 2012 06:29:37 -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:x-mailer:in-reply-to:references;\r
27         bh=P/4DMCW/lNuO8mr62zv8MknP/3u1G8WgL+koyerSrPA=;\r
28         b=0OgTnGDrOs635HxV/d9ai3z8sq+/9r4jFhw1fsBUkfyJ7/ZzGYmupn9hVFYf7dOJmI\r
29         2assmvTOweXTqnYgMX1V3ShALPPXbN3JYw2t3on+oRmeg/EZkRHLl/Dh4gicXGv4NJy0\r
30         +tdbRyNr4NHkpBy61CA9ODxYMoyYPS7LWg0xtZZSg0U2WOe1bGv0VbuRyQqe7uGQo/Qh\r
31         dVBS4Bddy2U0aa0x9G5Q8Gm17sgfIZo4KVRKM9NgH/vrwi79Uv67Pjut8oKcsZJcWtZd\r
32         jNHgdhG0DUXzbMW7R89+hsFIahlM4PRk+C8EWRfl68Nzam42oAHkvT27c0PN0bmld/j9\r
33         /Sxw==\r
34 Received: by 10.68.221.10 with SMTP id qa10mr74949437pbc.154.1340198976334;\r
35         Wed, 20 Jun 2012 06:29:36 -0700 (PDT)\r
36 Received: from localhost (215.42.233.220.static.exetel.com.au.\r
37         [220.233.42.215])\r
38         by mx.google.com with ESMTPS id hb5sm31927706pbc.58.2012.06.20.06.29.33\r
39         (version=TLSv1/SSLv3 cipher=OTHER);\r
40         Wed, 20 Jun 2012 06:29:35 -0700 (PDT)\r
41 From: Peter Wang <novalazy@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH 2/8] cli: add --exclude=all option to notmuch-search.c\r
44 Date: Wed, 20 Jun 2012 23:29:01 +1000\r
45 Message-Id: <1340198947-29370-3-git-send-email-novalazy@gmail.com>\r
46 X-Mailer: git-send-email 1.7.4.4\r
47 In-Reply-To: <1340198947-29370-1-git-send-email-novalazy@gmail.com>\r
48 References: <1340198947-29370-1-git-send-email-novalazy@gmail.com>\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Wed, 20 Jun 2012 13:29:38 -0000\r
62 \r
63 From: Mark Walters <markwalters1009@gmail.com>\r
64 \r
65 Add a --exclude=all option to notmuch search.\r
66 ---\r
67  notmuch-search.c |    8 ++++++--\r
68  1 files changed, 6 insertions(+), 2 deletions(-)\r
69 \r
70 diff --git a/notmuch-search.c b/notmuch-search.c\r
71 index 3be296d..89b5bf9 100644\r
72 --- a/notmuch-search.c\r
73 +++ b/notmuch-search.c\r
74 @@ -420,6 +420,7 @@ enum {\r
75      EXCLUDE_TRUE,\r
76      EXCLUDE_FALSE,\r
77      EXCLUDE_FLAG,\r
78 +    EXCLUDE_ALL\r
79  };\r
80  \r
81  int\r
82 @@ -461,6 +462,7 @@ notmuch_search_command (void *ctx, int argc, char *argv[])\r
83            (notmuch_keyword_t []){ { "true", EXCLUDE_TRUE },\r
84                                    { "false", EXCLUDE_FALSE },\r
85                                    { "flag", EXCLUDE_FLAG },\r
86 +                                  { "all", EXCLUDE_ALL },\r
87                                    { 0, 0 } } },\r
88         { NOTMUCH_OPT_INT, &offset, "offset", 'O', 0 },\r
89         { NOTMUCH_OPT_INT, &limit, "limit", 'L', 0  },\r
90 @@ -516,7 +518,7 @@ notmuch_search_command (void *ctx, int argc, char *argv[])\r
91         exclude = EXCLUDE_FALSE;\r
92      }\r
93  \r
94 -    if (exclude == EXCLUDE_TRUE || exclude == EXCLUDE_FLAG) {\r
95 +    if (exclude != EXCLUDE_FALSE) {\r
96         const char **search_exclude_tags;\r
97         size_t search_exclude_tags_length;\r
98  \r
99 @@ -525,7 +527,9 @@ notmuch_search_command (void *ctx, int argc, char *argv[])\r
100         for (i = 0; i < search_exclude_tags_length; i++)\r
101             notmuch_query_add_tag_exclude (query, search_exclude_tags[i]);\r
102         if (exclude == EXCLUDE_FLAG)\r
103 -           notmuch_query_set_omit_excluded (query, FALSE);\r
104 +           notmuch_query_set_omit_excluded (query, NOTMUCH_EXCLUDE_FALSE);\r
105 +       if (exclude == EXCLUDE_ALL)\r
106 +           notmuch_query_set_omit_excluded (query, NOTMUCH_EXCLUDE_ALL);\r
107      }\r
108  \r
109      switch (output) {\r
110 -- \r
111 1.7.4.4\r
112 \r