Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: info-gnus-english@gnu.org
Subject: Re: help with "nnmail-split-methods", please.
Date: Tue, 27 Feb 2007 21:50:34 +0100	[thread overview]
Message-ID: <87odnfpbol.fsf@baldur.tsdh.de> (raw)
In-Reply-To: <m3d53vsiod.fsf@xgon.wt-174.byu.edu>

Xingang Zhang <zhang.xingang@gmail.com> writes:

Hi Xingang,

> Say, for example, If I would like to split all the incoming mails
> which address is *either* "ab_foo_cd@xxx.com" *or* "foo23@xxxx.edu" to
> my "mail.buddy" folder, how should I implement it with
> nnmail-split-methods? Any input is very welcome. Please comment a lot
> if possible. :) Thanks.

(setq nnmail-split-methods 'nnmail-split-fancy
      nnmail-split-fancy
      ;; Messages from the mailer daemon are not crossposted to any of
      ;; the ordinary groups.  Warnings are put in a separate group
      ;; from real errors.
      '(| ;; Try all alternatives till one matches
        ;; Split foo23@xxxx.edu into mail.buddy
        (from "foo23@xxxx.edu"    "mail.buddy")
        ;; Split ab_foo_cd@xxxx.com into mail.buddy, too.
        (from "ab_foo_cd@xxx.com" "mail.buddy")
        ;; Unmatched mail goes to the catch all group.
        "misc.misc"))

Have a look at (info "(gnus)Fancy Mail Splitting").

Bye,
Tassilo
-- 
          "Emacs is not a development tool but a way of life."
                - David Kastrup in alt.religion.emacs -

  reply	other threads:[~2007-02-27 20:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-27 15:51 Xingang Zhang
2007-02-27 20:50 ` Tassilo Horn [this message]
     [not found] ` <mailman.180.1172609487.7795.info-gnus-english@gnu.org>
2007-02-28  0:05   ` Johan Bockgård

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=87odnfpbol.fsf@baldur.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=info-gnus-english@gnu.org \
    /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).