Brian Candler wrote:
On Thu, Feb 09, 2006 at 01:18:20PM +0100, Fernando Gozalo wrote:

I don't know if this is of interest, but...

In /etc/authlib/authldaprc you can read

=====================
##NAME: LDAP_MAILDIR:0
#
# The MAILDIR attribute is OPTIONAL, and specifies the location of the
# mail directory.  If not specified, ./Maildir will be used

# LDAP_MAILDIR          mailbox
=====================

I think this means that if not LDAP_MAILDIR defined then
"homeDirectory + /Maildir" will be used.

The attached patch makes this sentence true.


I can't see why this patch is neeed.

If the authentication module returns null for Maildir, then the client
program will use the value in MAILDIRPATH (default ./Maildir), which is I
think what that comment is trying to say.

I admit that this list was not the right place where send this patch because courier-imap has this solution. But I decided send it here because I think it can affect courier-imap.

There is no need to concatenate homeDir + Maildir. The authdaemon client
code always does a chdir(homeDir), before the application does
chdir(Maildir), so a relative path is fine. See
courier-authlib/authdaemon.c, function auth_callback_default().

Admittedly, the MAILDIRPATH logic currently sites in the client programs
themselves (pop3d, imapd, sqwebmail) rather than in authlib, where it would
arguably would make more sense. It would at least mean that if you want a
non-default MAILDIRPATH you'd only have to change it in one place, rather
than in three or more.

And, if you add maildrop it would make even more sense.

Yes, I am installing postfix + courier-authlib + maildrop + courier-imap and I need that maildrop put the messages where courier-imap are going to take them. And as you say make more sense put the code in the backplane than in the client.

Regards,
Fernando.

--
Fernando Gozalo Rodrigo - Analista de Sistemas

    Centro de Sistemas Informáticos
Universidad Nacional de Educación a Distancia

---------------------------------------------------------------
Por favor, no envíe adjuntos de WORD, EXCEL o POWERPOINT
Vea http://www.gnu.org/philosophy/no-word-attachments.es.html
---------------------------------------------------------------



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to