From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47764 Path: main.gmane.org!not-for-mail From: kclark@CetaceanNetworks.com (Kevin D. Clark) Newsgroups: gmane.emacs.gnus.general Subject: Re: Reading mail with GNUS and other mail clients Date: 21 Nov 2002 09:35:51 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <6n0o3j8hk.fsf@koan.cetaceannetworks.com> References: <3DDCBCA6.7030009@uber.com.br> <84zns3b1ig.fsf@lucy.cs.uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1037889420 20313 80.91.224.249 (21 Nov 2002 14:37:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2002 14:37:00 +0000 (UTC) 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 18EsRu-0005HS-00 for ; Thu, 21 Nov 2002 15:36:58 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18EsTE-0003fi-00; Thu, 21 Nov 2002 08:38:20 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 21 Nov 2002 08:39:08 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id IAA06394 for ; Thu, 21 Nov 2002 08:38:51 -0600 (CST) Original-Received: (qmail 13255 invoked by alias); 21 Nov 2002 14:37:59 -0000 Original-Received: (qmail 13236 invoked from network); 21 Nov 2002 14:37:55 -0000 Original-Received: from unknown (HELO arb-exchange1.cetaceannetworks.com) (63.127.199.195) by gnus.org with SMTP; 21 Nov 2002 14:37:55 -0000 Original-Received: from listserv.cetaceannetworks.com (10.1.1.51 [10.1.1.51]) by arb-exchange1.cetaceannetworks.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 445NY8PF; Thu, 21 Nov 2002 09:27:39 -0500 Original-Received: from koan.cetaceannetworks.com.CetaceanNetworks.com (koan.cetaceannetworks.com [10.1.2.5]) by listserv.cetaceannetworks.com (8.11.6+Sun/8.11.6) with ESMTP id gALEbgd01104 for ; Thu, 21 Nov 2002 09:37:42 -0500 (EST) Original-To: ding@gnus.org In-Reply-To: <84zns3b1ig.fsf@lucy.cs.uni-dortmund.de> Original-Lines: 32 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47764 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47764 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes: > Jose Romildo Malaquias 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 --=-=-= Content-Disposition: attachment; filename=procmail-imapd-courier.txt Content-Description: 1/1 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 --=-=-=--