* Mail Sorting/Splittien
@ 2009-07-24 5:20 Slackrat
2009-07-25 8:32 ` Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Slackrat @ 2009-07-24 5:20 UTC (permalink / raw)
To: ding
I would like to know what I'm doing wrongly here.
Note that the offending message is sorted into both _spam.spam_ and
_spam.TFN-Forwarded_
This I do not want
Below are the relevant sections of my _.gnus_ file and the _headers_ from
the message. NOTE - ampersand replaced by __AT__ for posting to the List only.
I do have various categories of Spam/UCE, but as far as I can see, that
should not affect the split/sort.
As an aside, I use no filtering on inbound, or for that matter outbound
emails. In other words, I want every message that comes in and otherwise
is permitted by my _aliases_ file. But I don't want them twice.
Some IP ranges are blocked on my firewall, but that is not an issue
here.
[START PARTIAL GNUS FILE _SPLIT_]
;; ############################
;; ## MAIL SORTING/SPLITTING ##
;; ############################
;; ZAP DUPLICATE ARTICLES
(setq gnus-suppress-duplicates t
nnmail-treat-duplicates 'delete)
;; However, remain vigilant as emails do come
;; in that meet two or even more criteria
;;
(setq nnmail-split-methods
'(
;; SPAM
("spam.to-inconnu" "^To:.*inconnu__AT__*")
("spam.TFN-Forwarded" "^To:.*ab460__AT__torfree.net")
("spam.potential-spam" "^To:.*billhenderson*")
("spam.potential-spam" "^Subject:.*none*")
("spam.potential-spam" "^Delivered-To:.*billhenderson*")
("spam.spam" "^To:.*undisclosed recipients*")
("spam.spam" "^To:.*daveycrockett*")
("spam.spam" "^From:.*ipswitchmail.com*")
("spam.spam" "^From:.*mtbikers.com*")
("spam.spam" "^Subject:.*[SPAM]*")
[SNIP]
[/END PARTIAL GNUS FILE _SPLIT_]
[START MESSAGE HEADERS]
-From-Line: n.3370.283404__AT__bxgu.batterfelds.com Fri Jul 24 06:05:26 2009
Return-Path: <n.3370.283404__AT__bxgu.batterfelds.com>
Received: from darkstar (localhost [127.0.0.1])
by darkstar.azurservers.com (8.13.8/8.13.8) with ESMTP id n6O45PpA019416
for <inconnu__AT__localhost>; Fri, 24 Jul 2009 06:05:26 +0200
X-Original-To: ab460__AT__torfree.net
Delivered-To: ab460__AT__torfree.net
Received: from sheppard1.torfree.net [204.225.122.150]
by darkstar with POP3 (fetchmail-6.3.4)
for <inconnu__AT__localhost> (single-drop); Fri, 24 Jul 2009 06:05:26 +0200 (CEST)
Received: from ip40.bearparent.com (ip40.bearparent.com [76.164.219.40])
by sheppard.torfree.net (Postfix) with SMTP id 686AC4B3D6CB1
for <ab460__AT__torfree.net>; Thu, 23 Jul 2009 23:56:57 -0400 (EDT)
Date: Thu, 23 Jul 2009 23:42:31 -0400
From: "Asthma Inhaler Alert" <AsthmaInhalerAlert.bxgu__AT__bxgu.batterfelds.com>
To: ab460__AT__torfree.net
Subject: A List of Asthma Inhalers Found to be Harmful
MIME-Version: 1.0
X-Mailer: mxm v8.3.4.1000.283404
Reply-To: r.3370.283404__AT__bxgu.batterfelds.com
X-Gnus-Mail-Source: file:/var/spool/mail/inconnu
Message-Id: <20090723200404.jclnweoctx__AT__bxgu.batterfelds.com>
Content-Type: multipart/alternative; boundary="=_3679cfbe03ce0c6d41399dfa1e5d0b04"
Lines: 76
Xref: darkstar.azurservers.com spam.spam:126 spam.TFN-Forwarded:138
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[/END MESSAGE HEADERS]
--
Slackrat
9/11 was an Inside Job
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Mail Sorting/Splittien
2009-07-24 5:20 Mail Sorting/Splittien Slackrat
@ 2009-07-25 8:32 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2009-07-25 8:32 UTC (permalink / raw)
To: Slackrat; +Cc: ding
Slackrat <gnus@azurservers.com> writes:
> ("spam.spam" "^Subject:.*[SPAM]*")
This regexp is equivalent to "^Subject:". If you want to match the
literal string "[SPAM]" in a regexp you need to quote it as
"\\[SPAM\\]". Also, remove the trailing "*".
("spam.spam" "^Subject:.*\\[SPAM\\]")
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-25 8:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-24 5:20 Mail Sorting/Splittien Slackrat
2009-07-25 8:32 ` Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).