From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/3902 Path: main.gmane.org!not-for-mail From: Gord Matzigkeit Newsgroups: gmane.emacs.gnus.general Subject: Re: Using virtual servers when setting up mail groups Date: Wed, 8 Nov 1995 15:38:32 -0700 Message-ID: <199511082238.PAA25405@casual1.enci.ucalgary.ca> References: <"pQvdv3.0.1c1.Anxdm"@guest3.math.ncsu.edu> Reply-To: Gord Matzigkeit NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035144719 27783 80.91.224.250 (20 Oct 2002 20:11:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:11:59 +0000 (UTC) X-From-Line: ding-request@ifi.uio.no Wed Nov 8 15:43:23 1995 Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by miranova.com (8.6.11/8.6.9) with ESMTP id PAA15623 for ; Wed, 8 Nov 1995 15:43:21 -0800 Original-Received: from casual1.enci.ucalgary.ca (casual1.enci.ucalgary.ca [136.159.125.2]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Wed, 8 Nov 1995 23:37:04 +0100 Original-Received: (from gord@localhost) by casual1.enci.ucalgary.ca (8.6.12/8.6.12) id PAA25405; Wed, 8 Nov 1995 15:38:32 -0700 Original-To: ding@ifi.uio.no In-reply-to: William Setzer's message of Tue, 7 Nov 1995 17:57:43 -0500 X-Attribution: El Gordo Original-Lines: 133 Xref: main.gmane.org gmane.emacs.gnus.general:3902 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:3902 Resent to ding@ifi.uio.no at Steven Baur's request... -----BEGIN PGP SIGNED MESSAGE----- Hi! >>>>> William Setzer writes: WS> Well, after realizing that I was trying to get nnmbox to do what WS> nnfolder is designed to do (I had it in my head that nnfolder did WS> MH-like things), and adding that above stuff to the appropriate WS> files, things now work like a charm. Thanks for the help! Very nice! I went out of my way to try nnfolder, which seems to be the loveliest compromise between nnmbox and nnml (which I used before I lost some mail). Thanks for mentioning nnfolder... I'd truly recommend it for all the procmail users out there. How does this look (as a contribution to the Gnus FAQ)? Q. I use procmail. What is the most straightforward way to setup mail reading under Gnus? A. Gordon Matzigkeit writes: After a long time (more than 6 months) of using Gnus with procmail, I've come to the following conclusion: nnfolder is the best backend to use. It doesn't mangle your mail and require careful setup like nnmh and nnml do (MH users may disagree), and it doesn't lump together all the mail you so carefully separated in your .procmailrc (like nnmbox or nnbabyl does). So, put the following in your ~/.emacs: ;; automatically process nnfolder groups on startup (setq gnus-secondary-select-methods '((nnfolder "")) gnus-activate-foreign-newsgroups 'gnus-level-subscribed) ;; procmail options (setq nnmail-use-procmail t nnmail-split-methods nil ;; don't do any internal splitting nnmail-spool-file 'procmail ;; fetch mail from .spool files, not inbox ;; wait at least 2 days before deleting read mail nnmail-expiry-wait 2) Put in your .procmailrc (probably after any other recipes you have): ####################### # Gnus setup # use lockfiles that Emacs movemail honours... otherwise you may lose mail LOCKEXT=+ # put mail into our incoming Gnus spool MAILDIR=$HOME/incoming DEFAULT=mail.misc.spool # Insert a Lines header to speed Gnus up :0 fhw * !^Lines: * B ?? 1^1 ^(.|$) | formail -a "Lines: $=" # ensure that there is a Message-Id and Subject line so Gnus doesn't barf :0f | formail -a Message-Id: -a "Subject: (none)" ###################################################################### # the rest of the .procmailrc contains rules to put mail into # the different Gnus newsgroup spools # the depot mailing list :0 * ^TOinfo-cmu-depot@ list.info-cmu-depot.spool # guile users :0 * ^TOgel@ list.gel.spool # Hurd developers :0 * ^TOhurd-dev@ list.hurd-dev.spool # Mach 4 users :0 * ^TOmach4-users@ list.mach4-users.spool # Lesstif users :0 * ^TOlesstif-digest@ list.lesstif-digest.spool # a test mailing list #:0 #* ^Subject: test #mail.test.spool # anything that falls through the bottom will go to the mail.misc group With the above setup, Gnus will detect new newsgroups automatically as mail arrives in ~/incoming, so all you'll change in the future is your .procmailrc. When you subscribe to a new nnfolder group, you may want to put (total-expire) in the group parameters (hit G p in the *Group* buffer), so that mail will be semi-automatically deleted after nnmail-expiry-wait days. You should take a more detailed look into Gnus's mail expiry options if total-expire doesn't sound right for you. - --Gord - -- Gord Matzigkeit | Jaques Cousteau loved programming in assembler. gord@enci.ucalgary.ca | PGP mail preferred... finger me for my key. Keyprint: D5 66 08 E0 4D F4 D7 7B 8A C8 8A 9C 7F 39 25 A7 - ID 339ABEB9 -----BEGIN PGP SIGNATURE----- Version: 2.6.2 Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface iQCVAwUBMKECxCFsfCEzmr65AQGVnAP+LeROqQQ5h1PvqjGyIBBXm6DyUTen+yW1 rku0G7Vy6A+jIpQfr4ZhnTcJd7y/B9rjhZeytFq50h1MNx2XCUVPGNYwVixrIXUz Af89k0xQrMKetzikx/Nf+IqPxgcz0KDzvimg3TCAhZtFfudiYpDdqaKdGgEM+e9k bA0xl9sP5/U= =L05r -----END PGP SIGNATURE-----