From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44632 Path: main.gmane.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.gnus.general Subject: Re: nnmaildir.el + courier IMAP compatibility patch Date: Fri, 03 May 2002 10:41:35 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: <874rhp420w.fsf@squeaker.lickey.com> References: <87n0viphxx.fsf@squeaker.lickey.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020444177 20261 127.0.0.1 (3 May 2002 16:42:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 3 May 2002 16:42:57 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 173g93-0005Gg-00 for ; Fri, 03 May 2002 18:42:57 +0200 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 173g86-0003Rb-00; Fri, 03 May 2002 11:41:58 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 03 May 2002 11:42:13 -0500 (CDT) 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 LAA21161 for ; Fri, 3 May 2002 11:42:02 -0500 (CDT) Original-Received: (qmail 24000 invoked by alias); 3 May 2002 16:41:41 -0000 Original-Received: (qmail 23994 invoked from network); 3 May 2002 16:41:41 -0000 Original-Received: from hank.lickey.com (ident-is-dumb@64.81.100.235) by gnus.org with SMTP; 3 May 2002 16:41:41 -0000 Original-Received: from squeaker.lickey.com (squeaker.lickey.com [192.168.100.10]) by hank.lickey.com (Postfix) with ESMTP id 50410EE40 for ; Fri, 3 May 2002 10:41:38 -0600 (MDT) Original-Received: by squeaker.lickey.com (Postfix, from userid 1000) id BE202BFD6; Fri, 3 May 2002 10:41:36 -0600 (MDT) Original-To: ding Mail-Followup-To: ding In-Reply-To: (prj@po.cwru.edu's message of "Thu, 02 May 2002 18:32:27 -0400") Original-Lines: 64 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44632 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44632 prj@po.cwru.edu (Paul Jarc) writes: > Matt Armstrong wrote: >> By default Courier IMAP expects INBOX to be ~/Maildir/ and any >> INBOX.subfolder to be ~/Maildir/.subfolder/. However, if I set up >> nnmaildir's create-directory to point at ~/Maildir/, it will create >> new folders without the leading dot (~/Maildir/subfolder/) and Courier >> IMAP won't find them. > > Well, you could create symlinks. Ah, but there seems to be no > gnus-make-new-group-hook to do that from. I tried this, but courier seems to like to have the real directory in ~/Maildir >> So I added a courier-compatible parameter to the nnmaildir server >> that causes it to create new maildirs with a leading . in the dir >> filename (while keeping the Gnus group the same). > > I think I'd rather have an arbitrarily configurable prefix, which > would default to "" and which in your case could be set to ".", > rather than something unnecessarily tied to a specific other piece > of software. Sounds like a good idea. > I've also been meaning to make it so that create-dir could be "."; > i.e., the server directory contains the maildirs directly rather > than symlinks to them. It seems these features could be related. > I'll work on it. Right now I'm using the symlinks to remove the leading '.' from the maildir directory name. This way Gnus doesn't think the group name is .list.ding but rather list.ding. > I've occasionally thought of writing an IMAP server that would store > marks in an nnmaildir-compatible way. I've occasionally thought of going the opposite direction and forking your nnmaildir.el to be less inode intensive by storing marks using the "experimental suffix" method described in the maildir spec, storing overview data as nnml does, etc. I can say with authority though that I'll never actually do it. ;-) > How does Courier store marks? With the maildir standard ":2,XYZ" suffixes on the filenames and a 'courierimapuidb' in the root of the maildir that maps IMAP unique ids to maildir files. E.g. 1 1020354007 5 1 1020345973.27446_0.squeaker 2 1020346023.27461_0.squeaker 3 1020346249.27609_0.squeaker 4 1020346675.27758_0.squeaker If IMAP has a way to set custom marks (which I vaguely think it does) I don't know how courier stores them. -- matt