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 7A07B431FB6 for ; Thu, 10 Feb 2011 05:04:59 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Improper folded header field made up entirely of whitespace (char 20 hex): X-Spam-Report: ...that system for details.\n \n Content previ[...] X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled 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 Rz3H3eLf-k4q for ; Thu, 10 Feb 2011 05:04:59 -0800 (PST) Received: from bytemark.telent.net (btyemark.telent.net [80.68.95.139]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id CA4CA431FB5 for ; Thu, 10 Feb 2011 05:04:58 -0800 (PST) Received: from 82-68-20-86.dsl.in-addr.zen.co.uk ([82.68.20.86] helo=lsip.4a.telent.net) by bytemark.telent.net with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1PnVW6-00074x-6e for notmuch@notmuchmail.org; Thu, 10 Feb 2011 12:20:59 +0000 Received: from dan by lsip.4a.telent.net with local (Exim 4.72) (envelope-from ) id 1PnVW4-00005q-Qt for notmuch@notmuchmail.org; Thu, 10 Feb 2011 12:20:57 +0000 From: Daniel Barlow To: notmuch@notmuchmail.org Subject: Spam and mailing list filtering? User-Agent: Notmuch/0.5-63-g62725a5 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Thu, 10 Feb 2011 12:20:55 +0000 Message-ID: <87ei7ggjx4.fsf@lsip.4a.telent.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Bar: / 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: Thu, 10 Feb 2011 13:04:59 -0000 I've been running notmuch for only a couple of days now and am still getting to grips with it, but I am very very happy to be back in Emacs again for mail after two years in the Thunderbird wilderness. So, thank you. I like my mail tagged on reception so that my mailing lists and spam only show up when (or if) I actually want to read them. To this end I've done as I suspect most people do: wrote a small shell script that runs 'notmuch add' and then a succession of 'notmuch tag' to identify the mails I'll deal with later. For example notmuch new notmuch tag +inbox -- to:dan and is:unread notmuch tag +office-work -- folder:Work/Shared.office and is:unread notmuch tag +tech-work -- folder:Work/Shared.technotes and is:unread notmuch tag +work -- folder:Work and is:unread notmuch tag +work -- from:office@work.com and is:unread notmuch tag +ruby-talk -inbox -- to:ruby-talk and is:unread notmuch tag +lrug -inbox -- to:ruby-talk and is:unread notmuch tag +work-figures -inbox -- '(from:figures@work.com or to:figures@work.com) and is:unread My questions 1) (How) can I filter on the X-Spam-Bar header to chop out spam and suspected spam? 2) Is there any way (actual or planned) to filter on X-List-Id or similar so that I can filter mailing list stuff more accurately 3) Ditto for filtering on Envelope-To, which I know is not a real SMTP header but appears in my mail archives anyway -dan