| Summary: | net-mail/vpopmail is not fully compatible with bincimap's IMAPdir | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Silviu Julean <sjulean> |
| Component: | [OLD] Server | Assignee: | Qmail Team (OBSOLETE) <qmail-bugs+disabled> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | enhancement | CC: | fauli, nakano, net-mail+disabled |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Silviu Julean
2004-12-29 17:11:54 UTC
isn't it possible to have bincimap treat the INBOX at the root maildir ~/.maildir/ directory instead of ~/.maildir/INBOX ? This would be an effective workaround for the problem if BINCimap allows that configuration. That is the case when using Maildir++, the Maildir extension originally used by bincimap. However, I'm using the new format, IMAPdir, thus ~/.imapdir must exist, and must contain ~/.imapdir/INBOX as a symlink pointing to ../~.maildir. The problem is that ~/.imapdir is not automatically created. This is NOT a bincimap problem. bincimap can't and shouldn't be able to automatically create folders and symlinks inside the user's home directory. Of course, it DOES have an option to auto-create the INBOX, but that only happens if .imapdir exists (I think), and that doesn't create a symlink to ../.maildir (it shouldn't). Instead, vpopmail - with an almost trivial patch - could handle this situation by creating the folder and symlink, ALONG WITH .maildir - not instead of it, whenever a new account is created. I was against your original description sounded like you wanted to really pollute the ~/.maildir/ area, which I was against. Looking at the patch from b) it should be possible to update that for Gentoo, and then conditionally apply it based on a USE flag for imapdir, and that route should be portable. I had the same problem on my server, running Vpopmail+BincIMAP.... I solved it
by changing the /service/bincimaps/run script to run a script that checks if the
.imapdir exists, if not create. And if the INBOX symlink exists, if not create it.
Here is the changes:
bincimaps/run (The last 3 lines)
/var/vpopmail/bin/vchkpw \
/usr/bin/linkwrapper \ <- THIS LINE
/usr/bin/bincimapd
/usr/bin/linkwrapper
#!/bin/sh
test -e .imapdir || mkdir .imapdir
test -e .imapdir/INBOX || ln -s ../.maildir .imapdir/INBOX
exec $@
I found this hack after googling the web, don't remeber where I found it but
here it is.
Hopes for a solution so I don't need this hack anymore.
I am interested if this issue is still existant in current versions of vpopmail |