From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57498 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.gnus.general Subject: Re: IMAP Splitting with multiple mailboxes Date: Tue, 18 May 2004 18:14:05 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: <86oeol7lwy.fsf@rumba.de.uu.net> References: <20040517175042.B23864@gwyn.tux.org> <20040518085316.A4024@gwyn.tux.org> <20040518100200.A12085@gwyn.tux.org> <86u0yd962m.fsf@rumba.de.uu.net> <20040518101548.B12085@gwyn.tux.org> <864qqd91fi.fsf@rumba.de.uu.net> <20040518115804.A30128@gwyn.tux.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084896869 6781 80.91.224.253 (18 May 2004 16:14:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 May 2004 16:14:29 +0000 (UTC) Original-X-From: ding-owner+M6038@lists.math.uh.edu Tue May 18 18:14:20 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BQ7ES-0001La-00 for ; Tue, 18 May 2004 18:14:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BQ7EL-00043R-00; Tue, 18 May 2004 11:14:13 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BQ7EH-00043M-00 for ding@lists.math.uh.edu; Tue, 18 May 2004 11:14:09 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BQ7EG-00082a-AC for ding@lists.math.uh.edu; Tue, 18 May 2004 11:14:08 -0500 Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by justine.libertine.org (Postfix) with ESMTP id B143F3A0217 for ; Tue, 18 May 2004 11:14:07 -0500 (CDT) Original-Received: from news by quimby.gnus.org with local (Exim 3.35 #1 (Debian)) id 1BQ7EF-0006Zs-00 for ; Tue, 18 May 2004 18:14:07 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 67 Original-NNTP-Posting-Host: 139.4.37.213 Original-X-Trace: quimby.gnus.org 1084896847 21949 139.4.37.213 (18 May 2004 16:14:07 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Tue, 18 May 2004 16:14:07 +0000 (UTC) User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:yOYoPtZfD2jHrkXbDdG0o/8Zehw= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57498 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57498 Timothy Brown writes: > I have three nnimap select methods selecting from different servers. > When using nnimap splitting - fancy splitting - where do the messages > end up if there is no declaration of nnimap+host:folder, I think that splitting cannot cross server boundaries. That is, if you specify "INBOX.foo" as the target group for a server, then it will be on the server currently being split. > and just a folder declaration? Do they end up local to the nnimap > server that is being split from at the time? I think so. > Can splitting occur between servers? I think that's not possible. > Can I see messages on one server and have them moved via nnimap to a > different server using splitting? Well, splitting happens before you see the messages. So you can't see them before splitting... Maybe you mean something else? > How does : spam-split interact with nnimap fancy splitting, > particularly in the concept of having multiple virtual servers? Huh. Dunno. I guess that if it says that INBOX.spam is the target, then this will be on the server being split... A question you didn't ask is how to have different split rules for different servers. The variable nnimap-split-rule appears to allow this, but I don't see how it would work for fancy splitting. [time passes] Oh! Now I see. Here's what you do: (setq nnimap-split-rule '(("server1" ("INBOX" tim-split-fancy-1)) ("server2" ("INBOX" tim-split-fancy-2)))) (setq tim-split-fancy-rule-1 -value-that-looks-like-nnimap-split-fancy-) (setq tim-split-fancy-rule-2 -another-value-looking-like-nnimap-split-fancy-) (defun tim-split-fancy-1 () (let ((nnimap-split-fancy tim-split-fancy-rule-1)) (nnimap-split-fancy))) (defun tim-split-fancy-2 () (let ((nnimap-split-fancy tim-split-fancy-rule-2)) (nnimap-split-fancy))) The idea is that you define two different functions to perform the splitting, and both functions essentially do like the function nnimap-split-fancy, but temporarily change the value of the nnimap-split-fancy variable. That's a common Lisp trick. All of the above is untested. I never tried anything that fancy with splitting ;-) Kai