Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Tim McNamara <timmcn@bitstream.net>
Subject: Re: Splitting mail by source
Date: Tue, 06 Jan 2004 16:12:19 -0600	[thread overview]
Message-ID: <m28ykk681o.fsf@Stella-Blue.local> (raw)
In-Reply-To: <isjoucqn.fsf@yahoo.co.uk>

Paul Moore <pf_moore@yahoo.co.uk> writes:

> I have 2 POP mail sources. I'd like to split my mail based on where
> it came from (to help me track which account attracts spam
> fastest). So, I'd like to put mail that I downloaded from yahoo into
> mail.yahoo, and mail that I downloaded from lycos into mail.lycos.
>
> I can't (easily) split on headers, as particularly with spam, I
> can't easily rely on any header. Is there a straightforward way of
> doing this?

Why can't you sort on the "To" headers?  E.g.:

(setq nnmail-split-methods 'nnmail-split-fancy)
   (setq nnmail-split-fancy
     '(| ("to" "your-e-mail-address@yahoo" "mail.yahoo")
         ("to" "your-e-mail-address@lycos" "mail.lycos")))

That won't snare e-mail not addressed to you, or if it has a
suppressed recipient list; I suppose you could substitute some kind
of regexp for your e-mail address, or let them go to mail.misc.  Or I
suppose you could do some sort of matching on the "Received by"
header, which ought to be specific to the ISP.


       reply	other threads:[~2004-01-06 22:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <isjoucqn.fsf@yahoo.co.uk>
2004-01-06 22:12 ` Tim McNamara [this message]
2004-01-06 23:26   ` Paul Moore
     [not found]     ` <m2ptdwticr.fsf@Stella-Blue.local>
2004-01-07 18:41       ` Paul Moore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m28ykk681o.fsf@Stella-Blue.local \
    --to=timmcn@bitstream.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).