This patch changes the mail directory of the user to ~/Mail if possible. First, we try to create the Mail subdirectory, and then we check to see if it exists. If it does, we use it as the user's mail directory. If not, we use the user's real home directory as their mail directory. This is useful for trying to un-clutter the user's home directory from all of their mailbox folders and such. This has no effect on blackbox users. This patch is UNTESTED. (well, it is kind of tested, but not tested in this form.. I just ripped it out of a larger patch of mine and tossed it up here.) If you get this to work for you e-mail me about it and I can know that this works. Thank you. See for more info: http://www.davideous.com/imap-maildir/ - David Harris Thu Jan 6 09:00:11 EST 2000 diff -rNu3 imap-4.6_vpop_orig/src/osdep/unix/env_unix.c imap-4.6_vpop_my/src/osdep/unix/env_unix.c --- imap-4.6_vpop_orig/src/osdep/unix/env_unix.c Wed Dec 1 12:18:57 1999 +++ imap-4.6_vpop_my/src/osdep/unix/env_unix.c Wed Dec 1 12:19:40 1999 @@ -533,7 +577,10 @@ nslist[0] = &nshome,nslist[1] = &nsblackother,nslist[2] = &nsshared; else { /* not a black box */ nslist[0] = &nshome,nslist[1] = &nsunixother,nslist[2] = &nsshared; - myHomeDir = cpystr (home);/* use real home directory */ + sprintf(tmp, "%s/Mail", home); + if (stat(tmp,&sbuf)) + mkdir(tmp, dir_protection); + myHomeDir = cpystr ( (!stat (tmp,&sbuf) && (sbuf.st_mode & S_IFDIR)) ? tmp : home ); /* make sure user rc files don't try this */ blackBoxDir = blackBoxDefaultHome = ""; }