Spam and mailing list filtering?
authorDaniel Barlow <dan@telent.net>
Thu, 10 Feb 2011 12:20:55 +0000 (12:20 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:54 +0000 (09:37 -0800)
0a/1645f290c18fa00ff26c02b298093ce1733664 [new file with mode: 0644]

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