From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/18793 Path: main.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.gnus.general Subject: Re: Splitting, crossposts, duplicates, the universe, and everything. Date: Tue, 17 Nov 1998 19:09:59 GMT Organization: Carnegie Mellon University : KANTOO Project Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 X-Trace: main.gmane.org 1035157258 8163 80.91.224.250 (20 Oct 2002 23:40:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:40:58 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id OAA17198 for ; Tue, 17 Nov 1998 14:11:28 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.1/8.9.1) with ESMTP id NAB19361; Tue, 17 Nov 1998 13:11:02 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 17 Nov 1998 13:10:57 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id NAA14987 for ; Tue, 17 Nov 1998 13:10:36 -0600 (CST) Original-Received: from sunsite.auc.dk (sunsite.auc.dk [130.225.51.30]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id OAA17178 for ; Tue, 17 Nov 1998 14:10:20 -0500 (EST) Original-Received: (qmail 14527 invoked by uid 509); 17 Nov 1998 19:10:16 -0000 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Followup-To: gnu.emacs.gnus Original-Newsgroups: gnu.emacs.gnus,emacs.ding User-Agent: Gnus/5.070048 (Pterodactyl Gnus v0.48) Emacs/20.3 Original-Lines: 94 Original-NNTP-Posting-Host: 128.2.110.42 Original-X-Complaints-To: news@sunsite.auc.dk Original-X-Trace: sunsite.auc.dk 911329799 128.2.110.42 (Tue, 17 Nov 1998 20:09:59 MET DST) Original-NNTP-Posting-Date: Tue, 17 Nov 1998 20:09:59 MET DST Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:18793 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:18793 Lloyd Zusman writes: > Suppose these are my split methods: > > (setq nnmail-split-methods > '(("one" "^\\(To\\|Cc\\):.*one@asfast\\.com") > ("two" "^\\(To\\|Cc\\):.*two@asfast\\.com") > ("three" "^\\(To\\|Cc\\):.*three@asfast\\.com") > ("four" "^\\(To\\|Cc\\):.*four@asfast\\.com") > ("other" ""))) > > Furthermore, suppose I have set `nnmail-crosspost' to nil. > > I have all my incoming email to the various users on my system going > to a single mail spool, and I use Gnus to split it. > > Now, suppose I receive some email with the following `To:' line: > > To: one@asfast.com, two@asfast.com, three@asfast.com, four@asfast.com > > Once the mail is split, it only ends up in my `one' mailbox. But what > I want is a single copy in each of the `one', `two', `three', and > `four' mailboxes. OK. So I figured that I'd just set > `nnmail-crosspost' to `t'. Once I did that, an email with the same > `To:' line as above indeed ended up in each of those four mailboxes, > but it appeared four times in each one, for a total of 16 instances > altogether. > > I sort of see why this happened, but I'm wondering if there's a way to > prevent this. I'd like to cause one and only one copy to appear in > each of the mailboxes that appear on the `To:' line. > > I looked at `nnmail-split-fancy', and it doesn't seem to handle this > case. Actually, `nnmail-split-fancy' should work just fine. Try the following for the above: (setq nnmail-split-methods 'nnmail-split-fancy) (setq nnmail-split-fancy '(& (to "one@asfast\\.com" "one") (to "two@asfast\\.com" "two") (to "three@asfast\\.com" "three") (to "four@asfast\\.com" "four") "other")) Here is my `nnmail-split-fancy' for reference: (setq nnmail-split-fancy '(| ;; Personal Mail ;; We don't want mailing list foo to appear here, even if from ;; the person in question. (any "m?duggan@\\(ramlink\\|wwd\\)\\.net" "mail.family") ;From home (any "mi-trans-command" "mail.mi-trans-admin") ("subject" "\\(cat\\|kantoo\\)/[0-9]+:.*" "mail.gnats") ;Gnats (& ;Could be crossposted ;; Put mail to me in misc (| ;; Unless it is from one of these guys. (from "\\(eric\\|svoboda\\|teruko\\|igo\\|klb\\).*cmu" "mail.job") (from "Kathryn_Baker" "mail.job") (from "[@.]cat\\.com" "mail.job") (any "catalyst-project" "mail.job") (any "pittcmulingannouncements" "mail.job") (any "lti-\\(seminar\\|staff\\)" "mail.job") (any "cyerthall" "mail.job") (to "chaos\\|md5i\\|duggan" "mail.misc")) ;; Mailing Lists (any "ding" "mail.Gnus") ;Gnus mailing list (any "gwm" "mail.gwm") ;GWM mailing list (any "mi@ml\\.usagi\\.org" "mail.mi") ;Maison Ikkoku mailing list (any "mi-list\\|mlist-mi" "mail.mi") ;MI Translation mailing list (any "mi-trans@lists\\.best\\.com" "mail.MI-Translation") (any "mule" "mail.mule") ;MULE mailing list (any "ntemacs-hackers" "mail.ntemacs-hackers") (any "ntemacs-users" "mail.ntemacs") ;NTEmacs mailing list (any "custom" "mail.custom") ;emacs-custom mailing list (any "w3" "mail.w3") ;W3 mailing list (any "kodocha" "mail.kodocha") ;Kodomo no Omocha ML (any "patlabor" "mail.patlabor") ;Patlabor ML (any "emacs-unicode" "mail.unicode") ;The Emacs/Unicode Project (any "DILBERT_NEWS" "mail.misc") (any "anime-l" "mail.misc") ;UCI anime report ) (to "cmu" "mail.misc") ;; Catch all (Should be junk.) "mail.junk")) -- Michael Duggan (md5i@cs.cmu.edu) .