> > > On Tue, Aug 09, 2005 at 04:48:43AM +0800, wind dong wrote: >> I'd like to use IMAPdir for it's good convention for those familiar >> with POP clients. I make Maildir++ works at first, then when I try >> to use IMAPdir, it seems the mail is stored under ~Maildir/new, but >> bincimap access the ~Maildir/INBOX/new so found nothing. So I have >> to manully rm the new, cur and tmp directories under INBOX and make >> soft link to ~Maildir/new, cur and tmp, it works. but I wonder if >> there is any better way to do it automaticly, maybe as I read in >> your FAQ, to let MTA(qmail-ldap) to delivery it to INBOX's. > > I use a wrapper script that is run right before bincimapd. > > Here is my run file: > --8<-- run > exec 2>&1 > > exec -a tcpserver /usr/local/bin/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 > -->8-- > > And here's the script: > --8<-- imapdir_inbox_link > #!/bin/sh > test -d Maildir || /var/qmail/bin/maildirmake Maildir > test -e Maildir/INBOX || /bin/ln -s . Maildir/INBOX > exec $@ > -->8-- >
Thank you for your help. Your script did work smoothly and help me much :-) > The script checks for a Maildir in the current directory, if none > exists one is created with maildirmake. Then if Maildir/INBOX doesn't > exist, it is symlinked to the Maildir directory itself. > But one thing interesting, by symlink Maildir/INBOX to Maildir which is its father directory, I found some endless hierarchical problem, for example, if I like, I could just "cd ./INBOX/INBOX/INBOX/INBOX/INBOX/...../INBOX" ;-) Since I am a thorough newbie to IMAPdir, I don't know if this is the natrue of it. > >> Sorry for my English. > > Your english is fine! :) > > > //Peter > > Thank you. Wind
