procmail
[Top] [All Lists]

GNUS how-to (was: Mail Readers?)

1996-01-15 00:31:38
In article 
<umtbuofxib5(_dot_)fsf(_at_)iceland(_dot_)cis(_dot_)ohio-state(_dot_)edu> 
Sudish Joseph <joseph(_at_)cis(_dot_)ohio-state(_dot_)edu> writes:
Many newer newsreaders incorporate support for mail-as-news.  Using
one of these agents might be preferable to rolling your own, since
they often offer additional functionality for mail groups, over and
above that for normal newsgroups.

Gnus 5 is a combined mail and news agent, check out
<URL:http://www.ifi.uio.no/~larsi/> if you want more info.

Let me say what I do since it could be of use to other people.

I use the nnml back-end of ding GNUS to read mail from most mailing
lists.  Here's what my setup looks like:

My .emacs contains something like this:

        (setq nnmail-spool-file 'procmail)
        (setq nnmail-procmail-directory "~/Mail/incoming/nnml")
        (setq nnmail-procmail-suffix "")

Then my procmailrc file contains things like this:

        NNMLDIR=$HOME/Mail/incoming/nnml

        :0 c:
        * ^TOprocmail\>
        $NNMLDIR/procmail

WARNING WARNING WARNING:  Do not set nnmail-procmail-directory to a
directory containing anything other than mailbox files you want
imported into gnus.  Nnmail will import and destroy all files in the
nnmail-procmail-directory without leaving a backup.

When gnus starts up, it will automatically find any files in
~/Mail/incoming/nnml and turn this into fake newsgroups, with names
like "nnml:procmail".  To see the new groups, just list the zombie
groups with "A z" and then subscribe to the nnml groups.

To delete files from the nnml directory, you probably want to set the
auto-expire property of the newsgroup.  Do this from the *Group*
buffer with "G p", and set the property list to just "(auto-expire)".
Expired messages will be deleted from your nnml directory about a week
after you expire them.

David

<Prev in Thread] Current Thread [Next in Thread>