From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61517 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Multiple nnimap folders as mail sources Date: Tue, 13 Dec 2005 17:30:01 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134491694 32751 80.91.229.2 (13 Dec 2005 16:34:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2005 16:34:54 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m10048@lists.math.uh.edu Tue Dec 13 17:34:44 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmD2y-0000dw-SI for ding-account@gmane.org; Tue, 13 Dec 2005 17:30:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EmD2u-0002Zh-00; Tue, 13 Dec 2005 10:30:32 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EmD2k-0002Zc-00 for ding@lists.math.uh.edu; Tue, 13 Dec 2005 10:30:22 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EmD2g-0001xy-LZ for ding@lists.math.uh.edu; Tue, 13 Dec 2005 10:30:21 -0600 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EmD2g-0005T6-00 for ; Tue, 13 Dec 2005 17:30:18 +0100 Original-Received: from latte.josefsson.org (jas@yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3) with ESMTP id jBDGU8Pg002663 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 13 Dec 2005 17:30:11 +0100 Original-To: Michael Sperber OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:051213:sperber@informatik.uni-tuebingen.de::yFZp3tnC6bBq6n2G:1aqV X-Hashcash: 1:21:051213:ding@gnus.org::BnenpO0VW27zLEBz:2vXy In-Reply-To: (Michael Sperber's message of "Mon, 12 Dec 2005 18:05:09 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on yxa-iv X-Virus-Scanned: ClamAV version 0.84, clamav-milter version 0.84e on yxa.extundo.com X-Virus-Status: Clean X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61517 Archived-At: Michael Sperber writes: > Simon Josefsson writes: > >> Michael Sperber writes: >> >>> Simon Josefsson writes: >>> >>>> Michael Sperber writes: >>>> >>>>> Is there a way to tell it that, if I want to update group nnml:foo >>>>> (and *only* then) to consult IMAP folder foo as the mail source for >>>>> that? >>>> >>>> Would a nnml mail split that inspect the X-Gnus-Mail-Source header, >>>> and move all messages from the IMAP source to nnml:foo, work? >>> >>> Would that only look at the headers as it's consulting the IMAP >>> server, or download all the articles as well? >> >> It would download all articles from one IMAP mailbox, then add that >> header, which you could inspect to filter all e-mails into the >> nnml:foo group. Perhaps I misunderstood what you wanted. > > When I'm updating only certain groups, I only want the articles of > that group to be downloaded. It seems what you're describing means > I'll always need to download all the articles. Aha, I think I understand now. I don't think this is possible, although for a rather subtle reason. When you press M-g to update group nnml:foo, it will run through all mail-sources. If there was a way to say "only query this particular mail-source", it might work. You could write a function to change the mail source variable definition depending on which group you wanted to update, but it sounds slightly messy. Perhaps there are simpler solutions, or maybe the "query this particular mail-source" operation is possible but I don't know how to. Assuming the above, you'd then set up a IMAP split rule to move message from INBOX.foo into INBOX.foo-to-nnml, and then have a mail-source that reads from INBOX.foo-to-nnml and a nnml split rule that moves everything from the INBOX.foo-to-nnml IMAP mail-source into nnml:foo.