Xingang Zhang <[EMAIL PROTECTED]> writes:
Hi Xingang,
> Say, for example, If I would like to split all the incoming mails
> which address is *either* "[EMAIL PROTECTED]" *or* "[EMAIL PROTECTED]" 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 [EMAIL PROTECTED] into mail.buddy
(from "[EMAIL PROTECTED]" "mail.buddy")
;; Split [EMAIL PROTECTED] into mail.buddy, too.
(from "[EMAIL PROTECTED]" "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 -
_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english