Re: [binc] IMAPdir with qmail-ldap
Kyle Wheeler <[email protected]> Wed, 10 Aug 2005 10:33:18 -0500
| Newsgroups | gmane.mail.imap.binc.general |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday, August 10 at 03:32 PM, quoth Peter Stuge:
>Well, no, not really. The reason for this symlink hack is that IMAP
>defines the folder INBOX to be the place where new mail arrives. (Or
>if it doesn't, at least that has become the defacto standard.) But
>most delivery systems are designed to deliver into a single, stand-
>alone maildir, the delivery systems don't know and don't care about
>any other folders in the Maildir.
>
>So the symlink is used instead of changing the delivery program so
>that it delivers to Maildir/INBOX, which would certainly be a cleaner
>solution.
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.
'course, I use this script:
#!/bin/sh
[ ! -d $HOME/IMAPdir ] && maildir2imapdir.pl "$HOME/Maildir" \
"$HOME/IMAPdir" && rm -rf $HOME/Maildir.bak
exec $@
Where the maildir2imapdir.pl script is the one that was posted to this
list a while back
(http://www.bincimap.andreas.hanssen.name/archive/?0::1082)
~Kyle
--
In order to keep a true perspective of one's importance, everyone should
have a dog that will worship him and a cat that will ignore him.
-- Dereke Bruce
signature.asc
(application/pgp-signature, 196 B)
-----BEGIN PGP SIGNATURE----- Comment: Thank you for using encryption! iD8DBQFC+h4+BkIOoMqOI14RAm8aAKC+MvGFP6UWxHbRAGBsTR9EZ3vS+gCfZk7e RvjwC7647vmbZx03eicvf6U= =lArv -----END PGP SIGNATURE-----