From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52133 Path: main.gmane.org!not-for-mail From: Michael =?iso-8859-1?q?Teichgr=E4ber?= Newsgroups: gmane.emacs.gnus.general Subject: Re: Using different backends Date: Fri, 02 May 2003 15:03:49 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: <87fznxzemr.fsf@wmipf.in-berlin.de> References: <84u1cknes9.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: main.gmane.org 1051880880 32206 80.91.224.249 (2 May 2003 13:08:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 2 May 2003 13:08:00 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M676@lists.math.uh.edu Fri May 02 15:07:58 2003 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 19BaGc-0008N9-00 for ; Fri, 02 May 2003 15:07:58 +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 19BaHM-0007VO-00; Fri, 02 May 2003 08:08:44 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19BaHH-0007VJ-00 for ding@lists.math.uh.edu; Fri, 02 May 2003 08:08:39 -0500 Original-Received: (qmail 29893 invoked by alias); 2 May 2003 13:08:39 -0000 Original-Received: (qmail 29888 invoked from network); 2 May 2003 13:08:39 -0000 Original-Received: from mail.s.netic.de (212.9.160.11) by sclp3.sclp.com with SMTP; 2 May 2003 13:08:39 -0000 Original-Received: from host-212-9-162-188.dial.netic.de ([212.9.162.188] helo=iridium.renata.de) by mail.s.netic.de with esmtp (Exim 4.10) id 19BaGx-0001SG-00; Fri, 02 May 2003 15:08:20 +0200 Original-Received: from micha by iridium.renata.de with local (MasqMail 0.1.16) id 19BaDU-1lP-00; Fri, 02 May 2003 15:04:45 +0200 Mail-Reply-To: Michael =?iso-8859-1?q?Teichgr=E4ber?= Original-To: Andreas Jaeger X-Wo-Ist-Die-ISS: http://wmipf.in-berlin.de/sat/curpos.html X-Betriebssystem: Debian GNU/Linux X-Request-PGP: http://wmipf.in-berlin.de/mtgpg.asc X-PGP-Key: 5656 F203 8343 0A2E 8259 6102 3F0D B4F4 1182 8000 In-Reply-To: (Andreas Jaeger's message of "Sun, 27 Apr 2003 21:06:37 +0200") User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:52133 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52133 --=-=-= Content-Transfer-Encoding: quoted-printable Andreas Jaeger writes: > Can anybody help me here? I looked through the manual and through the > sources but couldn't find anything. The idea sounds fine, In my case procmail is splitting mail into mbox-folders within two directories 'incoming-nnfolder' and 'incoming-nnml'. Gnus will copy per-folder from these directories via 'mail-sources' into nnfolder and nnml groups. The only way I got this working is by changing the key binding of 'g' for getting new mail to a function that runs gnus-group-get-new-news twice in different environments: ------------------------------------------------------------>8---------- (setq gnus-select-method '(nntp "news.vr.in-berlin.de")) (setq gnus-secondary-select-methods '((nnfolder "") (nnml ""))) (defun my-gnus-group-get-new-news (&optional foo) (interactive "i") (let (mail-sources) (let ((gnus-secondary-select-methods '((nnml "") (nnfolder "")))) (setq mail-sources '((directory :path "~/Mail/incoming-nnml" :suffix "" :plugged t))) (gnus-group-get-new-news)) (setq mail-sources '((file :plugged t) (directory :path "~/Mail/incoming-nnfolder" :suffix "" :plugged t))) (gnus-group-get-new-news))) (add-hook 'gnus-group-mode-hook '(lambda() (local-set-key ?g 'my-gnus-group-get-new-news))) ----------8<------------------------------------------------------------ This approach was suggested some time ago in a News posting. It makes Gnus check twice for new News articles as well. Trying to avoid this, I have set gnus-select-method first to (nnml "") and gnus-secondary-select-method to nil, so that new News articles would be checked for only once. But, for unknown reasons the process of getting mail from these local folders then gets quite slow. Since Gnus does not support this way of using two backends for local mail retrieval, there is probably something strange with this approach. Is there a better one, that allows using procmail to split mails, and makes Gnus getting it into nnml or nnfolder groups, depending on folder name? --=20 Michael --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+smy2Pw209BGCgAARAtBhAKCmG11XDphTOFY9laN6GzXd/4QN8wCgnrYi 0ulQ2/JPDAaE3BvrCii6x3s= =jj7p -----END PGP SIGNATURE----- --=-=-=--