1 Return-Path: <olivier.berger@telecom-sudparis.eu>
\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 1C0E8431FDF
\r
6 for <notmuch@notmuchmail.org>; Tue, 6 May 2014 05:23:01 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 2Q5nap38Cf4x for <notmuch@notmuchmail.org>;
\r
16 Tue, 6 May 2014 05:22:53 -0700 (PDT)
\r
17 X-Greylist: delayed 343 seconds by postgrey-1.32 at olra;
\r
18 Tue, 06 May 2014 05:22:53 PDT
\r
19 Received: from zproxy120.enst.fr (zproxy120.enst.fr [137.194.52.34])
\r
20 by olra.theworths.org (Postfix) with ESMTP id 76381431FD6
\r
21 for <notmuch@notmuchmail.org>; Tue, 6 May 2014 05:22:53 -0700 (PDT)
\r
22 Received: from localhost (localhost [127.0.0.1])
\r
23 by zproxy120.enst.fr (Postfix) with ESMTP id 8ABAC112F3C
\r
24 for <notmuch@notmuchmail.org>; Tue, 6 May 2014 14:17:06 +0200 (CEST)
\r
25 X-Virus-Scanned: amavisd-new at zproxy120.enst.fr
\r
26 Received: from zproxy120.enst.fr ([127.0.0.1])
\r
27 by localhost (zproxy120.enst.fr [127.0.0.1]) (amavisd-new, port 10024)
\r
28 with ESMTP id vqgvqbRybU17 for <notmuch@notmuchmail.org>;
\r
29 Tue, 6 May 2014 14:17:02 +0200 (CEST)
\r
30 Received: from localhost (bauxite.int-evry.fr [157.159.110.64])
\r
31 by zproxy120.enst.fr (Postfix) with ESMTPSA id 6C768112F2D
\r
32 for <notmuch@notmuchmail.org>; Tue, 6 May 2014 14:17:02 +0200 (CEST)
\r
33 From: Olivier Berger <olivier.berger@telecom-sudparis.eu>
\r
34 To: notmuch@notmuchmail.org
\r
35 Subject: Improving spam-tagging keybinding function to act on region in emacs
\r
36 User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1
\r
37 (x86_64-pc-linux-gnu)
\r
38 Date: Tue, 06 May 2014 14:17:00 +0200
\r
39 Message-ID: <87oazb9k5f.fsf@inf-8660.int-evry.fr>
\r
41 Content-Type: text/plain
\r
42 X-BeenThere: notmuch@notmuchmail.org
\r
43 X-Mailman-Version: 2.1.13
\r
45 List-Id: "Use and development of the notmuch mail system."
\r
46 <notmuch.notmuchmail.org>
\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
50 List-Post: <mailto:notmuch@notmuchmail.org>
\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
54 X-List-Received-Date: Tue, 06 May 2014 12:23:01 -0000
\r
58 I've tried tu use the tips indicated at
\r
59 http://notmuchmail.org/emacstips/#index8h2 so as to add a keybinding to
\r
60 tag spam messages, and wonder if there's a possibility to make it apply
\r
61 on selected regions, like what notmuch-search-archive-thread does.
\r
63 I can achieve the same result using a macro to iterate over lines, but a
\r
64 single key press to tag results of a search filter would be quite
\r
67 And... at the moment, it seems to me that with the current suggested
\r
68 lambdas, if one presses 'S' after selecting a whole region results in
\r
69 tagging all sorts of messages (all ?) with the spam tag ! :-/
\r
72 Btw, I think that the current examples could be improved by adding a (next-line)
\r
74 (define-key notmuch-search-mode-map "S"
\r
76 "mark messages in thread as spam"
\r
78 (notmuch-search-tag '("+spam" "-inbox"))
\r
86 http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
\r
87 Ingenieur Recherche - Dept INF
\r
88 Institut Mines-Telecom, Telecom SudParis, Evry (France)
\r