Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4475640BC7C for ; Tue, 17 Aug 2010 00:15:52 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2 X-Spam-Level: X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id st5U-1w0rHwC for ; Tue, 17 Aug 2010 00:15:40 -0700 (PDT) Received: from homiemail-a20.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by olra.theworths.org (Postfix) with ESMTP id 52F5640BC74 for ; Tue, 17 Aug 2010 00:15:40 -0700 (PDT) Received: from homiemail-a20.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a20.g.dreamhost.com (Postfix) with ESMTP id BD8267EC072 for ; Tue, 17 Aug 2010 00:15:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:subject :in-reply-to:references:date:message-id:mime-version: content-type; q=dns; s=sspaeth.de; b=NpMAsiPj0B2G8hPOBVOfO8g4/vy T+H+paDYhxfjZvurUpoCQD6JZpuikufhjAEllJrf3esTKhBRz/rf212tuDcyvuGo cVghhEVtziWASXoSo1ybMHdgto3vsm6Mnt6yTEWpxYyjgNdky5RPuDQ0Px0KlqZq XtOIw+Kd4geuesI8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to :subject:in-reply-to:references:date:message-id:mime-version: content-type; s=sspaeth.de; bh=al2Sh3qkoWB8vIDbGU4Y6j1WIbQ=; b=E 3Ib//qY76mtIDLLdHNQYdyEg5HCu7aZ4ZI1t1BUrPd8EoOv7EX16+cgNscOp9Lmc OwLb9k4P7x3z3sJHPvCTxby0RnkfIdZgQtP1lHemb0X3ASDYnk7HKLw1KXx8uoUq lag9rg1wvfiMakl6tGfmRpR21NlNEATU4eZSnmQejA= Received: from spaetzbook.sspaeth.de (unknown [62.48.118.26]) (Authenticated sender: fax@sspaeth.de) by homiemail-a20.g.dreamhost.com (Postfix) with ESMTPA id 55D4A7EC069 for ; Tue, 17 Aug 2010 00:15:17 -0700 (PDT) Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation); Tue, 17 Aug 2010 09:15:15 +0200 From: Sebastian Spaeth To: notmuch@notmuchmail.org Subject: Re: Integration with training-based bayesian filters In-Reply-To: <877hjqtvng.fsf@auriga.deep> References: <877hjqtvng.fsf@auriga.deep> User-Agent: Notmuch/0.3.1-16-g417274d (http://notmuchmail.org) Emacs/23.1.50.1 (X86_64-pc-linux-gnu) Date: Tue, 17 Aug 2010 09:15:15 +0200 Message-ID: <87pqxhk8vw.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2010 07:15:52 -0000 > The easy way is to expect the user enter the spam thread, which contains > exactly one message (never seen longer spam threads, still wondering > why...), and then press some key and confirm the destination, station > purple hell. Then you exit the thread. To enter another one... I just have a saved view where all possible junk mails are shown. Most of the time they really all are spam as I can see from the subjects and I simply press "*" and "+spam" to tag all those mails as spam. A cron script occassionally passes all spam-tagged mails to a bayesian filter. Something like this does not require me to fudge a lot with elisp (which I am not good with). > So, the crux is, to pipe the file to the classifier you need the filename, > and the filename appears to be easily available only in the 'show' mode. An within elisp solution would be elegant for sure. I've found that tagging messages and then later processing those messages outside of emacs works nicely for me. Here is the 5 line python script that shows all filenames for messages matching a certain query: http://notmuchmail.org/howto/ Sebastian