Gnus development mailing list
 help / color / mirror / Atom feed
From: kclark@CetaceanNetworks.com (Kevin D. Clark)
Subject: Re: Reading mail with GNUS and other mail clients
Date: 21 Nov 2002 09:35:51 -0500	[thread overview]
Message-ID: <6n0o3j8hk.fsf@koan.cetaceannetworks.com> (raw)
In-Reply-To: <84zns3b1ig.fsf@lucy.cs.uni-dortmund.de>

[-- Attachment #1: Type: text/plain, Size: 989 bytes --]


kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:

> Jose Romildo Malaquias <romildo@uber.com.br> writes:
> 
> > Is it possible to have gnus *and* other email clients to
> > read the email messages in the different mailboxes, in a
> > consistent way? Up to now my preferred mail reader
> > is mutt, so I will not give up of it just now. I intend to
> > start using gnus, but occasionaly still use mutt (or
> > any other email client, for the matter). By consistent
> > I mean new messages first read in gnus will be seen as
> > read (not new) in mutt, and vice-versa.
> 
> It is possible to achieve this by using an IMAP server.  This appears
> to be somewhat overkill in your case, but I know of no other solution.

I do this with great success.  Since I have this all written up, I
will distribute my notes (see attachment).

Regards,

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc




[-- Attachment #2: 1/1 --]
[-- Type: text/plain, Size: 4091 bytes --]

Motivations:
------------

I want the following features in my mail system:

  o  I want IMAP access so I can read my mail with multiple clients.
 
  o  I want standards-conforming encryption available to me so my
     passwords don't go over the wire in the clear. 

  o  I want my mail to get sorted into folders automatically.

  o  I want SPAM filtering (SpamBouncer, etc.).

  o  I want the system to be fast.


I pretty much had all of these features, except for the last one, when
I was running the University of Washington's IMAP server.  So, I
decided to migrate to courier-imapd.


How to do what I did:
---------------------

0:  Install procmail-3.22.  I found procmail-3.15.x to have serious
    bugs in handling the Maildir format, so I would strongly recommend
    *not* using this version.

1:  Get and install courier imapd.  If compiling from source, and 
    you want SSL support, you're going to have to mess around with
    CPPFLAGS and LDFLAGS (and have OpenSSL).

    While this is compiling, take a look at the graphs here:

        http://www.courier-mta.org/mbox-vs-maildir/

2:  Configure authentication.  For now, I decided to use PAM.  I had to mess
    around with the /usr/lib/courier-imap/etc/authdaemonrc and configure it
    to use PAM before LDAP -- the server was trying to use LDAP first
    and wouldn't let me login.

3:  Make your Maildir and the folders that you want.

    (the server won't let you login if you don't have a Maildir
    either...) 

    Before you do this, you'll probably want to read the "maildirmake"
    man page.  You might have to muck with your MANPATH to do this.

    If you're impatient, here is what I did:

    $ /usr/lib/courier-imap/bin/maildirmake $HOME/Maildir/     

    $ /usr/lib/courier-imap/bin/maildirmake -f ietf-announce $HOME/Maildir
    $ /usr/lib/courier-imap/bin/maildirmake -f gnhlug $HOME/Maildir
    $ /usr/lib/courier-imap/bin/maildirmake -f gnhlug-announce $HOME/Maildir
    [etc.]

    (you can create folders through a IMAP client too)

    This has the effect of creating a special Maildir directory in
    $HOME/Maildir.  Courier imapd stores folders in "dot-files" --
    from the above commands a directory called $HOME/Maildir/.gnhlug
    is created.  (*)

    *  This has the next effect of this:  when you look at your
       folders in a IMAP client, you'll have folders named
       "INBOX.gnhlug".  Various people on the net suggest installing
       symlinks to get around this "problem", but I didn't do this.

4:  Configure your .procmailrc thusly:

    [...lots of spurious details omitted]
    
    # I don't even know if this next line is necessary -- YMMV
    MAILDIR=$HOME/Maildir
    
    #   Procmail delivery rules:
    #     .../somefile    -> "somefile" is in mbox format
    #     .../foo/        -> Maildir format
    #     .../foo/.       -> MH format
    
    :0
    * ^TO.*IETF-Announce@
    $HOME/Maildir/.ietf-announce/
    
    :0
    * ^TO.*gnhlug@
    $HOME/Maildir/.gnhlug/
    
    # etc...
    
    # IT IS CRITICAL THAT THIS IS THE LAST RULE
    :0
    $HOME/Maildir/
    
5:  Do whatever you have to do to your mail system to get it to run
    incoming mail through procmail.

6:  Test.  Test.  Test.

6a: If you happen to be snarfing your mail off of another IMAP server
    (in my case, uwash-imapd) and putting it into this server, you
    might find procmail's "formail" to be useful.  Alternatively, you
    might find fetchmail's "--folder" and "--keep" options to be
    useful.  Caveat programmer... 

7:  You're running your own IMAP server -- you might want to take a
    moment to consider "how is my mail getting backed up?".




Acknowledgements:
-----------------

Obviously, I would like to thank the people who put courier-imapd,
procmail, and fetchmail together -- these are industrial-strength,
high-quality tools.

I would also like to thank Bob Bell (GNHLUG member), Fred Yankowski,
and Keith T. Garner (both of the Linux Users Of Northern Illinois) for
letting me bounce ideas off them when I was running into procmail
problems.

THE END

  reply	other threads:[~2002-11-21 14:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-21 10:59 Jose Romildo Malaquias
2002-11-21 11:33 ` Kai Großjohann
2002-11-21 14:35   ` Kevin D. Clark [this message]
2002-11-21 16:51   ` Jorge Godoy
2002-11-21 17:28     ` Kai Großjohann
2002-11-21 17:46       ` Jorge Godoy
2002-11-21 17:51         ` Kai Großjohann
2002-11-21 18:43         ` David Z Maze
2002-11-22  0:04       ` Jose Romildo Malaquias
2002-11-22 21:40         ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6n0o3j8hk.fsf@koan.cetaceannetworks.com \
    --to=kclark@cetaceannetworks.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).