From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47001 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: Do nnmail-split-fancy-with-parent for nnimap? Date: Sun, 06 Oct 2002 01:00:33 +0200 Organization: University of Dortmund, Germany Sender: owner-ding@hpc.uh.edu Message-ID: <87lm5cij8u.fsf@crybaby.cs.uni-dortmund.de> References: <87y99cik4g.fsf@crybaby.cs.uni-dortmund.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1033858864 21571 127.0.0.1 (5 Oct 2002 23:01:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 5 Oct 2002 23:01:04 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17xxuv-0005bX-00 for ; Sun, 06 Oct 2002 01:01:01 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17xxuo-0004TC-00; Sat, 05 Oct 2002 18:00:54 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 05 Oct 2002 18:01:34 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id SAA08563 for ; Sat, 5 Oct 2002 18:01:22 -0500 (CDT) Original-Received: (qmail 14109 invoked by alias); 5 Oct 2002 23:00:36 -0000 Original-Received: (qmail 14104 invoked from network); 5 Oct 2002 23:00:35 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 5 Oct 2002 23:00:35 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 17xygL-0008Tq-00 for ; Sun, 06 Oct 2002 01:50:01 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 67 Original-NNTP-Posting-Host: pd9e1eed0.dip.t-dialin.net Original-X-Trace: quimby.gnus.org 1033861801 26134 217.225.238.208 (5 Oct 2002 23:50:01 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 5 Oct 2002 23:50:01 GMT User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:vi9IIF83mBvr7/mGXJkjfZKWesA= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47001 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47001 Ted Zlatanov writes: > On Sun, 06 Oct 2002, Kai.Grossjohann@CS.Uni-Dortmund.DE wrote: >> In principle, it should be possible to use >> nnmail-split-fancy-with-parent for nnimap, too. But there are some >> issues, and I'm looking for ideas about them and about issues I >> missed. > > I'd love this functionality! Me too 8-) >> nnmail-cache-insert looks for the "primary mail backend" and only >> inserts the group name without server name. My idea was to extend >> this mechanism to record which server the group is in. Now the >> cache lines are msg id, then tab, then group. I could add another >> tab and then the server. That would make the format >> backward-compatible. The code would assume the primary mail backend >> for lines missing the server. > > Why not store the group name as Gnus shows it, e.g. when moving > articles? nnxyz+abcdef:groupname is what I'm thinking of. Then the > unqualified groups are in the primary backend - as they would be if > you manually moved articles around. I'm talking as a Gnus user, maybe > the implementation is much more complex that way. I don't know the > internals of mail moving. The problem is backward compatibility. Suppose people have nntp as their primary server, and nnml and nnimap as secondary servers. Then right now foo.bar means the group nnml:foo.bar (because nnml is the "primary mail backend"), but your suggestion would change it to mean a group on the nntp server. But maybe I'm overlooking something obvious? (One possibility would be to make all groups be prefixed, maybe we could use "native" for the primary server.) >> It would be really cool if ~/.nnmail-cache was stored on the server >> somehow. Is there a way to store data like this alongside IMAP mail >> on a server? > > I think the network usage would be too high for this. You must be kidding. Right now, nnimap splitting transfers each message over the net twice (one fetch from nnimap:INBOX, one put to the target group). I don't see how it can hurt to add 60 or 80 bytes to this traffic. No offense intended. (It conceivable that .nnmail-cache must always be transferred in full, maybe via ange-ftp. This is a bad solution indeed, and for this your counter argument would be right. I wasn't even considering such bad solutions before you mentioned the possibility :-) >> Hm. Actually I'm going to be really really really really busy >> starting in a couple of days, so I'm afraid this might be no more >> than some wishful thinking and day-dreaming :-| > > I hope someone else has interest in this! Right. kai -- ~/.signature is: umop ap!sdn (Frank Nobis)