Sat Apr 26 00:53:40 EDT 2003 This patch changes UW-IMAP to place your mailboxes in a sub-directory of your home directory (~/Mail). This prevents *every file* from showing up as a mailbox through IMAP. If this does not work, contact me. I have this working on my system -- I simply grabbed this chunk out of my *much larger* patch. I *think* that this is all the code required for this change. David Harris dharris@drh.net diff -u imap-fork/src/osdep/unix/env_unix.c:1.1.2.2 imap-fork/src/osdep/unix/env_unix.c:1.7 --- imap-fork/src/osdep/unix/env_unix.c:1.1.2.2 Wed Jul 31 13:34:51 2002 +++ imap-fork/src/osdep/unix/env_unix.c Thu Aug 1 11:04:48 2002 @@ -673,7 +722,19 @@ sysInbox = cpystr (tmp); /* make system INBOX */ anonymous = T; /* flag as anonymous */ } - myHomeDir = cpystr (home); /* set home directory */ + + /* set home directory */ + if (home && !blackBox && !anonymous) { + char* new_home; + new_home = (char *) fs_get (strlen (home) + 7); + sprintf(new_home, "%s/Mail", home); + if (stat(new_home,&sbuf)) + mkdir(new_home, dir_protection); + myHomeDir = cpystr ( (!stat (new_home,&sbuf) && (sbuf.st_mode & S_IFDIR)) ? new_home : home ); + fs_give((void **) &new_home); + } else + myHomeDir = cpystr (home); + } if (allowuserconfig) { /* allow user config files */