On Wed, Mar 09, 2005 at 03:50:31PM +0000, Michael Krieger wrote:
> This would enable IMAPdir on the first use from the IMAP server (or
> any client such as a webmail server), still allowing delivery as
> normal for legacy applications and tools.
> 
> Thoughts?  is this feasable?  In C I'm looking at a mere few lines
> of code, but I'm not fully sure where this would fit in with the
> BincIMAP code.  I believe it would be a great addition to the
> codebase.
> 
> Note that existing Maildir subfolders would appear as subfolders of
> Inbox, so that's not a big deal either.

I do this with a short but sweet wrapper script, called from the run
file, after checkpassword before bincimapd;

foo:/service/binc$ cat run
#!/bin/sh
# $Id: run.in,v 1.1.1.1 2003/08/18 18:06:05 andreaha Exp $
# daemontools supervise run-file for Binc IMAP Service.

exec 2>&1

exec    tcpserver -c 100 -u 0 -g 0              \
    -l $(hostname) -HDRP                        \
    127.0.0.1 143                               \
    /usr/local/bin/bincimap-up                  \
    --logtype=multilog                          \
    --conf=/usr/local/etc/bincimap.lo.conf --   \
    /var/qmail/vpopmail/bin/vchkpw              \
    /usr/local/sbin/imapdir_inbox_link          \
    /usr/local/bin/bincimapd
foo:/service/binc$ cat /usr/local/sbin/imapdir_inbox_link 
#!/bin/sh
test -d Maildir || /var/qmail/bin/maildirmake Maildir
test -e Maildir/INBOX || /bin/ln -s . Maildir/INBOX
exec $@
foo:/service/binc$ 


//Peter

Reply via email to