Re: [PATCH v3] Allow content preference based on message content.
[notmuch-archives.git] / dc / 542274c1ce56a04ba64af002ea21c987bff2c5
1 Return-Path: <dmitry.kurochkin@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 A9DBC40B942\r
6         for <notmuch@notmuchmail.org>; Thu,  1 Jul 2010 09:09: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: -1.999\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
13         DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001] autolearn=ham\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 Dd6Lwa8zorDd for <notmuch@notmuchmail.org>;\r
17         Thu,  1 Jul 2010 09:09:27 -0700 (PDT)\r
18 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
19  [74.125.82.45])        by olra.theworths.org (Postfix) with ESMTP id EA48C40B947       for\r
20  <notmuch@notmuchmail.org>; Thu,  1 Jul 2010 09:09:08 -0700 (PDT)\r
21 Received: by wwb18 with SMTP id 18so68548wwb.2\r
22         for <notmuch@notmuchmail.org>; Thu, 01 Jul 2010 09:09:07 -0700 (PDT)\r
23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
24         h=domainkey-signature:received:received:from:to:cc:subject:date\r
25         :message-id:x-mailer:in-reply-to:references;\r
26         bh=PkeXAe78vR2Tf1uoF21gPefDJMi4hjv+cRgSZD7VAqY=;\r
27         b=j6j1yZLDWRWJUYyqK7ReC+GyRXJ+9KBcHRPtONaUSyZAN2s5Yz6vL/5A9TNgUfYy/I\r
28         GM98fV9Q3tPobIyevflNLctPtzMcO8qDBbidCGRdy6CD+BZpi1GzxUN1cYLXNZMbQoMs\r
29         t2omz3dQZo9ChEWLb4AvjqgsWM/ogRkVAqpDM=\r
30 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
31         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
32         b=EgdUscAVRT/rd5yVB15YFvJNluUeAtzSkKu2fbzNfDbWcOmo3pNyLpHBCNH16RN9AQ\r
33         4QSs01oblAPgST4jVTGZQCMhfTC490Dil5bdonYv00H+2YFILNEBirj2yURql1mF9G9b\r
34         MrzK+70wFE8LipL3XMvbwph/GSKF3Agt2v3g4=\r
35 Received: by 10.103.81.12 with SMTP id i12mr4272274mul.89.1278000547303;\r
36         Thu, 01 Jul 2010 09:09:07 -0700 (PDT)\r
37 Received: from localhost ([91.144.186.21])\r
38         by mx.google.com with ESMTPS id a3sm347317fak.16.2010.07.01.09.09.06\r
39         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
40         Thu, 01 Jul 2010 09:09:06 -0700 (PDT)\r
41 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH 5/5] Add notmuch-hello-hook. Called every time notmuch-hello\r
44         buffer is updated.\r
45 Date: Thu,  1 Jul 2010 20:08:27 +0400\r
46 Message-Id: <1278000507-22290-6-git-send-email-dmitry.kurochkin@gmail.com>\r
47 X-Mailer: git-send-email 1.7.1\r
48 In-Reply-To: <1278000507-22290-1-git-send-email-dmitry.kurochkin@gmail.com>\r
49 References: <1278000507-22290-1-git-send-email-dmitry.kurochkin@gmail.com>\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Thu, 01 Jul 2010 16:09:39 -0000\r
63 \r
64 ---\r
65  emacs/notmuch-hello.el |    9 ++++++++-\r
66  1 files changed, 8 insertions(+), 1 deletions(-)\r
67 \r
68 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
69 index f8ae332..5777e99 100644\r
70 --- a/emacs/notmuch-hello.el\r
71 +++ b/emacs/notmuch-hello.el\r
72 @@ -32,6 +32,11 @@\r
73  (defvar notmuch-hello-search-bar-marker nil\r
74    "The position of the search bar within the notmuch-hello buffer.")\r
75  \r
76 +(defcustom notmuch-hello-hook nil\r
77 +  "Functions to call after populating a `notmuch-hello' buffer."\r
78 +  :group 'notmuch\r
79 +  :type 'hook)\r
80 +\r
81  (defcustom notmuch-recent-searches-max 10\r
82    "The number of recent searches to store and display."\r
83    :type 'integer\r
84 @@ -508,7 +513,9 @@ Complete list of currently available key bindings:\r
85           (widget-forward 1)))\r
86  \r
87        (unless (widget-at)\r
88 -       (notmuch-hello-goto-search)))))\r
89 +       (notmuch-hello-goto-search))))\r
90 +\r
91 +  (run-hooks 'notmuch-hello-hook))\r
92  \r
93  ;;;###autoload\r
94  (defun notmuch-folder ()\r
95 -- \r
96 1.7.1\r
97 \r