[Patch v5 6/8] lib: add private function to extract the database for a message.
[notmuch-archives.git] / ac / 9e2128ac8f119e3995a085876602bd286a584f
1 Return-Path: <m.walters@qmul.ac.uk>\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 EF22A431FBC\r
6         for <notmuch@notmuchmail.org>; Tue, 25 Dec 2012 03:04:52 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.098\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5\r
12         tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
13         NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] 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 yyrAkiKXi+qJ for <notmuch@notmuchmail.org>;\r
17         Tue, 25 Dec 2012 03:04:49 -0800 (PST)\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\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 C1B22431FAE\r
22         for <notmuch@notmuchmail.org>; Tue, 25 Dec 2012 03:04:48 -0800 (PST)\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
24         by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
25         (envelope-from <m.walters@qmul.ac.uk>)\r
26         id 1TnSJJ-0005z3-AI; Tue, 25 Dec 2012 11:04:41 +0000\r
27 Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost)\r
28         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)\r
29         (envelope-from <m.walters@qmul.ac.uk>)\r
30         id 1TnSJI-0005Cq-Vr; Tue, 25 Dec 2012 11:04:37 +0000\r
31 From: Mark Walters <markwalters1009@gmail.com>\r
32 To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
33 Subject: Re: [PATCH] emacs: show: make id links respect window\r
34 In-Reply-To: <87bodjfnt0.fsf@zancas.localnet>\r
35 References: <1355958602-16752-1-git-send-email-markwalters1009@gmail.com>\r
36         <87bodjfnt0.fsf@zancas.localnet>\r
37 User-Agent: Notmuch/0.14+236~g1d0044f (http://notmuchmail.org) Emacs/23.4.1\r
38         (x86_64-pc-linux-gnu)\r
39 Date: Tue, 25 Dec 2012 11:04:39 +0000\r
40 Message-ID: <87mwx2jsu0.fsf@qmul.ac.uk>\r
41 MIME-Version: 1.0\r
42 Content-Type: text/plain; charset=us-ascii\r
43 X-Sender-Host-Address: 93.97.24.31\r
44 X-QM-SPAM-Info: Sender has good ham record.  :)\r
45 X-QM-Body-MD5: 743ce505548e1d48a5755a25b381a98e (of first 20000 bytes)\r
46 X-SpamAssassin-Score: -1.8\r
47 X-SpamAssassin-SpamBar: -\r
48 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
49         determine if it is\r
50         spam. We require at least 5.0 points to mark a message as spam.\r
51         This message scored -1.8 points.\r
52         Summary of the scoring: \r
53         * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\r
54         *      medium trust\r
55         *      [138.37.6.40 listed in list.dnswl.org]\r
56         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
57         provider *      (markwalters1009[at]gmail.com)\r
58         * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay\r
59         *      domain\r
60         *  0.5 AWL AWL: From: address is in the auto white-list\r
61 X-QM-Scan-Virus: ClamAV says the message is clean\r
62 X-BeenThere: notmuch@notmuchmail.org\r
63 X-Mailman-Version: 2.1.13\r
64 Precedence: list\r
65 List-Id: "Use and development of the notmuch mail system."\r
66         <notmuch.notmuchmail.org>\r
67 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
69 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
70 List-Post: <mailto:notmuch@notmuchmail.org>\r
71 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
72 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
73         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
74 X-List-Received-Date: Tue, 25 Dec 2012 11:04:53 -0000\r
75 \r
76 \r
77 On Mon, 24 Dec 2012, David Bremner <david@tethera.net> wrote:\r
78 > Mark Walters <markwalters1009@gmail.com> writes:\r
79 >\r
80 >> I think this is a bug but that could be debated. It is particularly\r
81 >> easy to trigger with notmuch pick because that uses the split pane\r
82 >> while focus usually remains in the `pick' pane rather than the `show'\r
83 >> pane.\r
84 >\r
85 > I can imagine that people would want/like the "open in other window" \r
86 > effect of the current code, even if the reason is a bug.\r
87 \r
88 That's definitely possible. I generally expect a mouse click to select\r
89 the window I click and this feels counter intuitive. I think that some\r
90 people might like an option "open this link in a new window" but I would\r
91 guess that would like that whether they clicked or pressed RET on the\r
92 button.\r
93 \r
94 >>                        'action `(lambda (arg)\r
95 >>                                   (notmuch-show ,(third link)))\r
96 \r
97 > Can you (or someone) explain why backquote is needed here? Is this some\r
98 > kind of workaround for lack of lexical scope? If so, maybe a comment.\r
99 \r
100 I think this is a reasonably standard use: we want "(third link)"  to be\r
101 evaluated when the button is made, but we want the rest of the action to\r
102 be evaluated when the action is called. \r
103 \r
104 Best wishes\r
105 \r
106 Mark\r
107 \r
108 >\r
109 > d\r