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

Attachment: pgpP0qin6lSkC.pgp
Description: PGP signature

Reply via email to