Hi Mark,
The correct way to do this is to modify the routine mymailboxdir() in env_unix.c, e.g.:nice.
i first tried to change mymailboxdir, but obviously i made a mistake. then i read somewhere to play around with blackBoxDir, whatever, with your hint everythings works now. i had to do some changes, this is my solution for imap-2006a: find and replace in src/osdep/unix/env_unix.h: (finds a nice place for .mailboxlist and .mblxlsttmp, individual for each user) /* Subscription definitions for UNIX */ #define SUBSCRIPTIONFILE(t) sprintf (t,"%s/%s/.mailboxlist",myhomedir (), myusername()) #define SUBSCRIPTIONTEMP(t) sprintf (t,"%s/%s/.mlbxlsttmp",myhomedir (), myusername()) find and replace in srx/osdep/unix/env_unix.c: (returns an individual home mailbox directory for each user, creates needed directories if they don't exist) /* Return my home mailbox name * Returns: my home directory name */ static char *mymailboxdir () { char *home = myhomedir (); if (!myMailboxDir && myHomeDir) { char tmp[MAILTMPLEN]; sprintf (tmp,"%s/%s",myhomedir(), myusername()); struct stat stat_p; if ( -1 == stat (tmp, &stat_p)) mkdir(tmp, 0711); sprintf (tmp,"%s/mail",tmp); if ( -1 == stat (tmp, &stat_p)) mkdir(tmp, 0711); myMailboxDir = cpystr (tmp); } return myMailboxDir ? myMailboxDir : ""; } then compile and install.. with these changes, .mailboxlist and .mlbxlsttmp will go to /home-of-users/individual-username and the mailboxes are stored into /home-of-users/individual-username/mail . the home directoy of the users MUST exist, the other directories will be created automatically. thanks a lot, Mark. flipkick |
_______________________________________________ Imap-uw mailing list Imap-uw@u.washington.edu https://mailman1.u.washington.edu/mailman/listinfo/imap-uw