From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/31470 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: fetching mail for multiple servers Date: Tue, 20 Jun 2000 14:12:15 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035167876 14191 80.91.224.250 (21 Oct 2002 02:37:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:37:56 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id 88479D051E for ; Tue, 20 Jun 2000 08:13:22 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id HAC12974; Tue, 20 Jun 2000 07:13:11 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 20 Jun 2000 07:12:27 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id HAA01791 for ; Tue, 20 Jun 2000 07:12:16 -0500 (CDT) Original-Received: from waldorf.cs.uni-dortmund.de (waldorf.cs.uni-dortmund.de [129.217.4.42]) by mailhost.sclp.com (Postfix) with ESMTP id 50F43D051E for ; Tue, 20 Jun 2000 08:12:50 -0400 (EDT) Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id OAA28984; Tue, 20 Jun 2000 14:12:16 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id OAA19034; Tue, 20 Jun 2000 14:12:16 +0200 (MET DST) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-21) id OAA23293; Tue, 20 Jun 2000 14:12:15 +0200 X-Authentication-Warning: lucy.cs.uni-dortmund.de: grossjoh set sender to Kai.Grossjohann@CS.Uni-Dortmund.DE using -f Original-To: Harry Putnam In-Reply-To: Harry Putnam's message of "20 Jun 2000 03:24:30 -0700" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.0.90 Original-Lines: 54 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:31470 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:31470 Harry Putnam writes: > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: >=20 > > Right now, the algorithm for fetching mail is to go through all > > servers in order. For each server, check if it gets mail. If so, > > fetch mail from mail-sources and split it according to > > nnmail-split-methods. > >=20 > > This means if there are two servers that get mail, Gnus fetches mail > > for both of them but when processing the second one, no new mail is > > left. > >=20 > > I suggest to add the following backward-compatible feature to Gnus: > > when fetching mail for a server, look at server parameters > > mail-sources and nnmail-split-methods. If the server parameter is > > set, use it, else use the value of the global variable instead. > >=20 > > This means that people could do something like this: > >=20 > > (setq gnus-secondary-select-methods > > '((nnml "work" > > (nnml-directory "~/workmail/") > > (mail-sources '((pop :server "work.pop.server")))) > > (nnml "play" > > (nnml-directory "~/privatemail/") > > (mail-sources '((pop :server "private.pop.server")))))) > >=20 >=20 > That looks very useful. Its not clear from your post though, as to > what will happen with the splitting. Is it possible to make this > works so that each server can have its own split code too? That's what I meant. Like so: (setq gnus-secondary-select-methods '((nnml "work" (nnml-directory "~/workmail/") (nnmail-split-methods '(("" "mail.foo"))) (mail-sources '((pop :server "work.pop.server")))) (nnml "play" (nnml-directory "~/privatemail/") (nnmail-split-methods '(("" "mail.bar"))) (mail-sources '((pop :server "private.pop.server")))))) Here, all mail from work.pop.server will go to nnml+work:mail.foo, whereas mail from private.pop.server will go to nnml+play:mail.bar. Coming to think of it, it might be necessary to also allow nnmail-split-fancy as server parameter, too. kai --=20 I like BOTH kinds of music.