Gnus development mailing list
 help / color / mirror / Atom feed
* Re: Using virtual servers when setting up mail groups
       [not found]   ` <x7zqe8dopd.fsf@guest3.math.ncsu.edu>
@ 1995-11-08 22:38     ` Gord Matzigkeit
  0 siblings, 0 replies; only message in thread
From: Gord Matzigkeit @ 1995-11-08 22:38 UTC (permalink / raw)


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 <gord@enci.ucalgary.ca> 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-----


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-11-08 22:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <x7spk1zblo.fsf@guest3.math.ncsu.edu>
     [not found] ` <"pQvdv3.0.1c1.Anxdm"@guest3.math.ncsu.edu>
     [not found]   ` <x7zqe8dopd.fsf@guest3.math.ncsu.edu>
1995-11-08 22:38     ` Using virtual servers when setting up mail groups Gord Matzigkeit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).