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 olra.theworths.org (Postfix) with ESMTP id 4FEA0421171
\r
6 for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 17:19:26 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,
\r
14 RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id CH1x3kF1n9oz for <notmuch@notmuchmail.org>;
\r
18 Sun, 12 Feb 2012 17:19:26 -0800 (PST)
\r
19 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com
\r
20 [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
21 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
22 DBC2042117B for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 17:19:24 -0800
\r
24 Received: by mail-ww0-f45.google.com with SMTP id dt12so3923384wgb.2
\r
25 for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 17:19:24 -0800 (PST)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
27 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;
\r
28 bh=NXxzcCregAiuJTU62VQHhxm9DYgj4cu6Pn4sBJa9sm0=;
\r
29 b=Ht7L9H657py73ZsF58xlOZB8PYrE9uhnJFYN7TTquxTascYsSgP5pboj832lFg+szE
\r
30 oaGsccB/pLjtoIoat0UC6dq/xPJBZmtI6358o67B9AR1jCMz5IPIaI4okbEZ9B3pVt8M
\r
31 S1cU9Rdaq7JnwGMscHXtpM11ZS7GYYAvEKfp0=
\r
32 Received: by 10.180.107.67 with SMTP id ha3mr13530069wib.8.1329095964626;
\r
33 Sun, 12 Feb 2012 17:19:24 -0800 (PST)
\r
34 Received: from localhost (94-192-233-223.zone6.bethere.co.uk.
\r
35 [94.192.233.223]) by mx.google.com with ESMTPS id
\r
36 m8sm41756675wia.11.2012.02.12.17.19.23 (version=TLSv1/SSLv3 cipher=OTHER);
\r
37 Sun, 12 Feb 2012 17:19:23 -0800 (PST)
\r
38 From: Mark Walters <markwalters1009@gmail.com>
\r
39 To: notmuch@notmuchmail.org
\r
40 Subject: [RFC PATCH v3 06/11] emacs: add extra parameters option to
\r
41 notmuch-query-get-threads
\r
42 Date: Mon, 13 Feb 2012 01:20:10 +0000
\r
43 Message-Id: <1329096015-8078-7-git-send-email-markwalters1009@gmail.com>
\r
44 X-Mailer: git-send-email 1.7.2.3
\r
45 In-Reply-To: <1329072579-27340-1-git-send-email-markwalters1009@gmail.com>
\r
46 References: <1329072579-27340-1-git-send-email-markwalters1009@gmail.com>
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Mon, 13 Feb 2012 01:19:26 -0000
\r
61 Add an extra parameter to notmuch-query-get-threads (in
\r
62 notmuch-query.el) so that callers can pass in extra parameters to
\r
63 control the sort order, the --headers-only option, and threading etc.
\r
65 emacs/notmuch-query.el | 4 +++-
\r
66 1 files changed, 3 insertions(+), 1 deletions(-)
\r
68 diff --git a/emacs/notmuch-query.el b/emacs/notmuch-query.el
\r
69 index d66baea..b3c91a3 100644
\r
70 --- a/emacs/notmuch-query.el
\r
71 +++ b/emacs/notmuch-query.el
\r
73 (require 'notmuch-lib)
\r
76 -(defun notmuch-query-get-threads (search-terms)
\r
77 +(defun notmuch-query-get-threads (search-terms &rest extra-format)
\r
78 "Return a list of threads of messages matching SEARCH-TERMS.
\r
80 A thread is a forest or list of trees. A tree is a two element
\r
81 @@ -33,6 +33,8 @@ is a possibly empty forest of replies.
\r
82 (json-object-type 'plist)
\r
83 (json-array-type 'list)
\r
86 + (setq args (append args extra-format)))
\r
87 (if notmuch-show-process-crypto
\r
88 (setq args (append args '("--decrypt"))))
\r
89 (setq args (append args search-terms))
\r