On Wed, Aug 10, 2005 at 10:33:18AM -0500, Kyle Wheeler wrote:
What about something like this:

   #!/bin/sh
   [ ! -d IMAPdir ] && mkdir IMAPdir
   [ ! -L IMAPdir/INBOX ] && ln -s `pwd`/Maildir IMAPdir/INBOX
   exec $@

That way programs that deliver to the Maildir can continue
unchanged, and Binc can just use the IMAPdir next to the Maildir.

Yep, that works too, but I still think it's a hack. :)


Interesting comparison between Peter's and Kyle's solution, Peter's symlink Maildir to IMAPdir, while Kyle's use reversed direction,

The former use simple symlink, solid solution but an anoid endless INBOX problem, while the latter use more complex way to use standard IMAPdir but remain Maildir as symlink for traditional MTA's delivery compatibiliy. IMO, it's possible like maildir2imapdir.pl's author pointed, when the user access their imap account for the first time, new email coming the same time could be lost.

This is also only a problem for systems where just some of the users
use IMAP to access their email, since if you only have IMAP users it
should be (and is, at least with qmail) easy enough to change the
system-wide default delivery instruction.



So how about let MTA delivery to IMAPdir/INBOX directly? Under qmail-ldap is it possible to to do like this (of course, not only IMAP users, but also POP3 and etc)?

Wind

Reply via email to