* help with "nnmail-split-methods", please.
@ 2007-02-27 15:51 Xingang Zhang
2007-02-27 20:50 ` Tassilo Horn
[not found] ` <mailman.180.1172609487.7795.info-gnus-english@gnu.org>
0 siblings, 2 replies; 3+ messages in thread
From: Xingang Zhang @ 2007-02-27 15:51 UTC (permalink / raw)
To: info-gnus-english
Hello there,
I am a newbie of gnus and emacs. Please pardon my ignorance. I have
installed emacs23 with gnus 5.11 and everything went smooth. The only
question I have now is to automatically split my incoming mail with
rules defined with "nnmail-split-methods". I tried to follow some
examples posted on line and the manual. But, owing to my poor
knowledge of LISP, I cannot understand well what's the format to
specify the rule.
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.
--
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: help with "nnmail-split-methods", please.
2007-02-27 15:51 help with "nnmail-split-methods", please Xingang Zhang
@ 2007-02-27 20:50 ` Tassilo Horn
[not found] ` <mailman.180.1172609487.7795.info-gnus-english@gnu.org>
1 sibling, 0 replies; 3+ messages in thread
From: Tassilo Horn @ 2007-02-27 20:50 UTC (permalink / raw)
To: info-gnus-english
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 -
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: help with "nnmail-split-methods", please.
[not found] ` <mailman.180.1172609487.7795.info-gnus-english@gnu.org>
@ 2007-02-28 0:05 ` Johan Bockgård
0 siblings, 0 replies; 3+ messages in thread
From: Johan Bockgård @ 2007-02-28 0:05 UTC (permalink / raw)
To: info-gnus-english
Tassilo Horn <tassilo@member.fsf.org> writes:
> Xingang Zhang <zhang.xingang@gmail.com> writes:
>
>> 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.
But please still make the comments correspond to the code. :) Thanks.
--
Johan Bockgård
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-28 0:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-27 15:51 help with "nnmail-split-methods", please Xingang Zhang
2007-02-27 20:50 ` Tassilo Horn
[not found] ` <mailman.180.1172609487.7795.info-gnus-english@gnu.org>
2007-02-28 0:05 ` Johan Bockgård
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).