1 Return-Path: <todd@electricoding.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 97F23431FC9
\r
6 for <notmuch@notmuchmail.org>; Tue, 13 Jan 2015 16:01:05 -0800 (PST)
\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
12 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5
\r
13 tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 1EleHLaXeBp5 for <notmuch@notmuchmail.org>;
\r
17 Tue, 13 Jan 2015 16:01:05 -0800 (PST)
\r
18 Received: from s75.web-hosting.com (s75.web-hosting.com [198.187.31.9])
\r
19 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 35AF6431FBF
\r
22 for <notmuch@notmuchmail.org>; Tue, 13 Jan 2015 16:01:03 -0800 (PST)
\r
23 Received: from user-69-73-37-128.knology.net ([69.73.37.128]:38910
\r
24 helo=localhost.localdomain)
\r
25 by server75.web-hosting.com with esmtpsa (UNKNOWN:AES128-SHA256:128)
\r
26 (Exim 4.82) (envelope-from <todd@electricoding.com>)
\r
27 id 1YBBOQ-001yjE-G2; Tue, 13 Jan 2015 19:01:02 -0500
\r
28 From: Todd <todd@electricoding.com>
\r
29 To: notmuch@notmuchmail.org
\r
30 Subject: [PATCH v2 4/5] Update completions for Emacs and bash
\r
31 Date: Tue, 13 Jan 2015 18:00:27 -0600
\r
32 Message-Id: <1421193628-2699-5-git-send-email-todd@electricoding.com>
\r
33 X-Mailer: git-send-email 1.9.1
\r
34 In-Reply-To: <1421193628-2699-1-git-send-email-todd@electricoding.com>
\r
35 References: <1421193628-2699-1-git-send-email-todd@electricoding.com>
\r
36 In-Reply-To: <8761ce7s16.fsf@nikula.org>
\r
37 References: <8761ce7s16.fsf@nikula.org>
\r
38 X-AntiAbuse: This header was added to track abuse,
\r
39 please include it with any abuse report
\r
40 X-AntiAbuse: Primary Hostname - server75.web-hosting.com
\r
41 X-AntiAbuse: Original Domain - notmuchmail.org
\r
42 X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
\r
43 X-AntiAbuse: Sender Address Domain - electricoding.com
\r
44 X-Get-Message-Sender-Via: server75.web-hosting.com: authenticated_id:
\r
45 todd@electricoding.com
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\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, 14 Jan 2015 00:01:05 -0000
\r
63 This adds completions for Emacs and bash, ZSH does not appear to have
\r
64 completions for search terms.
\r
66 completion/notmuch-completion.bash | 2 +-
\r
67 emacs/notmuch.el | 2 +-
\r
68 2 files changed, 2 insertions(+), 2 deletions(-)
\r
70 diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash
\r
71 index d58dc8b..05b5969 100644
\r
72 --- a/completion/notmuch-completion.bash
\r
73 +++ b/completion/notmuch-completion.bash
\r
74 @@ -61,7 +61,7 @@ _notmuch_search_terms()
\r
75 sed "s|^$path/||" | grep -v "\(^\|/\)\(cur\|new\|tmp\)$" ) )
\r
78 - local search_terms="from: to: subject: attachment: tag: id: thread: folder: path: date:"
\r
79 + local search_terms="from: to: subject: attachment: contenttype: tag: id: thread: folder: path: date:"
\r
81 COMPREPLY=( $(compgen -W "${search_terms}" -- ${cur}) )
\r
83 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
84 index 218486a..ab00454 100644
\r
85 --- a/emacs/notmuch.el
\r
86 +++ b/emacs/notmuch.el
\r
87 @@ -858,7 +858,7 @@ PROMPT is the string to prompt with."
\r
90 (append (list "folder:" "path:" "thread:" "id:" "date:" "from:" "to:"
\r
91 - "subject:" "attachment:")
\r
92 + "subject:" "attachment:" "mimetype:")
\r
93 (mapcar (lambda (tag)
\r
94 (concat "tag:" (notmuch-escape-boolean-term tag)))
\r
95 (process-lines notmuch-command "search" "--output=tags" "*")))))
\r