hi everyone,

i'm working with a system where are all mail users use the same home directory /home/mailusers. i can't change the home directory because of an other applications which needs this configuration. now i want imapd to use an alternate home-directory for each user. like /home/mailusers/user1 for user no. 1, /home/mailusers/user2 for user no.2 and so on. mailboxes which are created by those users (like Trash and Spam) should go to this directory, like /home/mailusers/user1/Trash.

I tried changing blackBoxDir in env_unix.c to the specific Username. i did this by adding blackBoxDir = cpystr(myUserName); to the function env_init. if i'll compile, run, and connect to imapd now, the imap server would reply the correct contents of the new mailboxes (like Trash would lead to /home/mailusers/user1/Trash) and everything works fine, BUT if i try to create a new mailbox, he creates it, but into the home-dir /home/mailusers . so it's created in the wrong place and i can't read from it.

what would be a good point to look at to find the functions of imapd which create those mailboxes. i had my problems browsing the source.

thanks for any advice.

flipkick
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to