> On Monday, March  7 Kyle Wheeler wrote:
[...]
> Since rolling Binc out to all of my domains, I've since decided that
> IMAPdir was just a requirement. If it helps, what I did was I put a
> wrapper around Binc in the run script that automatically converts to
> IMAPdir when the user logs in (muahaha) (it uses the maildir2imapdir
> perl script written by Henry Baragar available here:
> http://article.gmane.org/gmane.mail.imap.binc.general/2566 ).

Thanks for the link!

> My run file looks like this (I use vpopmail, but the script would work
> for anyone):
[.. his run file .. ]

> And then the IMAPdirwrapper.sh is trivial:
>
> #!/bin/sh
> if [ ! -d "$HOME/IMAPdir" ] ; then
>     /usr/local/bin/maildir2imapdir "$HOME/Maildir" "$HOME/IMAPdir"
> fi
> exec $@
>
> I could have also made a script to convert all my users up front, but it
> was easier to do it this way (I'm lazy).

Another way would be to convert your old users with maildir2imapdir. A 3
lines bash script would do it (I'm also lazy).

For new users, I am using this wrapper. It just creates a symlink, as
suggested in the alternate approach of LWB, so you don't have to change
your current configuration of neither qmail, pop3d nor vpopmail :-)

#!/bin/sh
if [ ! -e "$HOME/Maildir/INBOX" ] ; then
    ln -s "$HOME/Maildir" "$HOME/Maildir/INBOX"
fi
exec $@

What do you think?

> Hope that helps,

It did it, thanks a lot!

Alejandro

Reply via email to