Dear Mark


Thank you for your help. I read this document before posting mail. As I understood in example 2 is described how to use not home directory directly, but it's sub directory as location for IMAP folders. For example always point to /home/<user>/mail instead of /home/<user> in case if *mailsubdir equals "mail". Am I wrong and my problem will be solved with "*mailsubdir = "/data/mail"" ? But in code I see, that :


if (mailsubdir) {
char tmp[MAILTMPLEN];
sprintf (tmp,"%s/%s",home,mailsubdir);
myMailboxDir = cpystr (tmp);/* use pre-defined subdirectory of home */
}


So it prints home, than mailsubdir. What if I want home to be different?

While reading docs/CONFIG I understood, that home directory should be changed in env_init() routine : "The most common
modifications are to env_init(), to modify the software's idea of the
home directory (which is used everywhere as the default directory)".


But, well, I am not very strong in C and there are so many various variables used there (home, myHomeDir, etc.) ... Also I saw, that getpwnam is used more than one tim before setting folders to pw->pw_dir, so this makes me confused. Will it be enough to change home dir location in one place ?

I am trying to use now "static char *blackBoxDir = "/data/mail";" - as I understood it will do right thing. Alias it is also nut fully clear for me what is that blackBox and how properly setup it, because in docs/imaprc.txt under section 5 ("set black-box-directory <directory name>") there is written :

"In order to make this work without crashing, you must set another option which is not listed in this document."

And my new imapd is really crashing, so I am not sure, that setting blackBoxDir to "/data/mail" is working. It is not clear about which setting there is information in docs/imaprc.txt file.

So maybe you can help me to clarify these questions ? I will highly appreciate any comments about this matter.

Thank you in advance.



With best regards
Martynas



Mark Crispin wrote:
On Tue, 1 Jul 2003, Martynas Buozis wrote:

I need a help to find out what should I changed in
src/osdep/unix/env_unix.c if I want IMAP folders and INBOX to be located
not in user's home directory.


The information you need is in file imap-2002d/docs/CONFIG.  Pay
particular example to example 2.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.



--


With best regards
Martynas Buozis
UNIX Systems Administrator
FFAB Computer Engineering



-------------------------------------------------------------
Martynas Buozis            Texas Instruments Deutschland GmbH
Mail:  [EMAIL PROTECTED]     Haggertystrasse 1
Phone: +49 8161 80 4506    85356 Freising
Fax:   +49 8161 80 3191    Germany



Reply via email to