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 03652431FD4
\r
6 for <notmuch@notmuchmail.org>; Tue, 6 May 2014 09:08:37 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.502 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_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 VIcGTPMOHuuy for <notmuch@notmuchmail.org>;
\r
17 Tue, 6 May 2014 09:08:32 -0700 (PDT)
\r
18 Received: from mail1.qmul.ac.uk (mail1.qmul.ac.uk [138.37.6.7])
\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 6F9CF431FC7
\r
22 for <notmuch@notmuchmail.org>; Tue, 6 May 2014 09:08:32 -0700 (PDT)
\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])
\r
24 by mail1.qmul.ac.uk with esmtp (Exim 4.71)
\r
25 (envelope-from <m.walters@qmul.ac.uk>)
\r
26 id 1Whhus-0002yU-0u; Tue, 06 May 2014 17:08:28 +0100
\r
27 Received: from 5751dfa2.skybroadband.com ([87.81.223.162] helo=localhost)
\r
28 by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71)
\r
29 (envelope-from <m.walters@qmul.ac.uk>)
\r
30 id 1Whhur-0000Gq-QY; Tue, 06 May 2014 17:08:25 +0100
\r
31 From: Mark Walters <markwalters1009@gmail.com>
\r
32 To: Olivier Berger <olivier.berger@telecom-sudparis.eu>,
\r
33 notmuch@notmuchmail.org
\r
34 Subject: Re: Improving spam-tagging keybinding function to act on region in
\r
36 In-Reply-To: <87oazb9k5f.fsf@inf-8660.int-evry.fr>
\r
37 References: <87oazb9k5f.fsf@inf-8660.int-evry.fr>
\r
38 User-Agent: Notmuch/0.15.2+615~g78e3a93 (http://notmuchmail.org) Emacs/23.4.1
\r
39 (x86_64-pc-linux-gnu)
\r
40 Date: Tue, 06 May 2014 17:08:24 +0100
\r
41 Message-ID: <87mweuzy87.fsf@qmul.ac.uk>
\r
43 Content-Type: text/plain; charset=us-ascii
\r
44 X-Sender-Host-Address: 87.81.223.162
\r
45 X-QM-Geographic: According to ripencc,
\r
46 this message was delivered by a machine in Britain (UK) (GB).
\r
47 X-QM-SPAM-Info: Sender has good ham record. :)
\r
48 X-QM-Body-MD5: d0c3c06fab8d99812b284de35dba8d79 (of first 20000 bytes)
\r
49 X-SpamAssassin-Score: -0.1
\r
50 X-SpamAssassin-SpamBar: /
\r
51 X-SpamAssassin-Report: The QM spam filters have analysed this message to
\r
53 spam. We require at least 5.0 points to mark a message as spam.
\r
54 This message scored -0.1 points.
\r
55 Summary of the scoring:
\r
56 * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
\r
57 provider * (markwalters1009[at]gmail.com)
\r
58 * -0.1 AWL AWL: From: address is in the auto white-list
\r
59 X-QM-Scan-Virus: ClamAV says the message is clean
\r
60 X-BeenThere: notmuch@notmuchmail.org
\r
61 X-Mailman-Version: 2.1.13
\r
63 List-Id: "Use and development of the notmuch mail system."
\r
64 <notmuch.notmuchmail.org>
\r
65 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
66 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
67 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
68 List-Post: <mailto:notmuch@notmuchmail.org>
\r
69 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
70 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
71 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
72 X-List-Received-Date: Tue, 06 May 2014 16:08:37 -0000
\r
77 As this section was rather outdated I have updated to modern notmuch. (In
\r
78 fact the lisp snippets should work back to at least 0.13)
\r
80 On Tue, 06 May 2014, Olivier Berger <olivier.berger@telecom-sudparis.eu> wrote:
\r
83 > I've tried tu use the tips indicated at
\r
84 > http://notmuchmail.org/emacstips/#index8h2 so as to add a keybinding to
\r
85 > tag spam messages, and wonder if there's a possibility to make it apply
\r
86 > on selected regions, like what notmuch-search-archive-thread does.
\r
88 I have added a snippet showing how to do this (and noted that is not
\r
89 possible in notmuch-tree as we don't have a tag region option there).
\r
91 > I can achieve the same result using a macro to iterate over lines, but a
\r
92 > single key press to tag results of a search filter would be quite
\r
95 > And... at the moment, it seems to me that with the current suggested
\r
96 > lambdas, if one presses 'S' after selecting a whole region results in
\r
97 > tagging all sorts of messages (all ?) with the spam tag ! :-/
\r
100 > Btw, I think that the current examples could be improved by adding a (next-line)
\r
101 > at the end, like :
\r
102 > (define-key notmuch-search-mode-map "S"
\r
104 > "mark messages in thread as spam"
\r
106 > (notmuch-search-tag '("+spam" "-inbox"))
\r
109 I have left this as it is as this works in search mode, but not show
\r
110 mode and I didn't want to have too many examples. Obviously feel free to
\r
111 edit the wiki if you like!
\r