From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/70744 Path: news.gmane.org!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.gnus.general Subject: Re: That newfangled IMAP thing... Date: Sun, 12 Sep 2010 18:32:57 +1000 Message-ID: <878w374b0m.fsf@rimspace.net> References: <87hbi3jasy.fsf@lifelogs.com> <87pqwmsusz.fsf@news.realpath.org> <8762yd6j4j.fsf@rimspace.net> <87eid0fsil.fsf@lifelogs.com> <87bp84y00w.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1284280518 25109 80.91.229.12 (12 Sep 2010 08:35:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Sep 2010 08:35:18 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M19117@lists.math.uh.edu Sun Sep 12 10:35:17 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oui1t-0006kZ-Fb for ding-account@gmane.org; Sun, 12 Sep 2010 10:35:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Oui1l-00053Q-9w; Sun, 12 Sep 2010 03:35:09 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Oui1j-00053B-U2 for ding@lists.math.uh.edu; Sun, 12 Sep 2010 03:35:07 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Oui1f-0001mY-HR for ding@lists.math.uh.edu; Sun, 12 Sep 2010 03:35:07 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Oui1e-0005sK-00 for ; Sun, 12 Sep 2010 10:35:02 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oui1d-0006eI-65 for ding@gnus.org; Sun, 12 Sep 2010 10:35:01 +0200 Original-Received: from ppp59-167-189-244.static.internode.on.net ([59.167.189.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Sep 2010 10:35:01 +0200 Original-Received: from daniel by ppp59-167-189-244.static.internode.on.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Sep 2010 10:35:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ppp59-167-189-244.static.internode.on.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:gab1iOsib8llwbhzObwvk4rk/d0= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:70744 Archived-At: Lars Magne Ingebrigtsen writes: > Lars Magne Ingebrigtsen writes: > >> It'll triple in size before it's done, but so far, so pleasant. > > I now have move/copy/accept going, too, so the next thing to handle is > probably client-side mail splitting. > > So I guess you'd have a variable that says which mailbox to use as the > source mailbox, which should just default to "INBOX". And then you > split according to ... Hm. The old nnimap has its private > `nnimap-split-rule'. Is that really necessary? Can't we just use the > normal `nnmail-split-methods' and stuff? Why should nnimap be different > from all the other mail backends? > > Anyway, the splitting methodology would be as follows: > > 1) stream-download all the articles in the INBOX group > 2) run the mail split rules over each article > 3) notice what new groups should be created, if any, and create them > 4) stream out a bunch of "COPY 23242 ding" (etc.) commands, to copy the > articles over to the correct groups > 5) parse the responses > 6) mark all the messages that were successfully copied as deleted (this > would normally be all the articles) > 7) do an "EXPUNGE" Watch out: an unconditional EXPUNGE here might not do what the user expects, since it will destroy all mail deleted, not just the stuff that Gnus handled. Unless you have UID EXPUNGE, better to either make that an option in Gnus or just avoid it. Er, and see my other response in the thread WRT where UID EXPUNGE can be found. Daniel -- ✣ Daniel Pittman ✉ daniel@rimspace.net ☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons