Dear Mark


Thank you very much for your help. Alias imapd is still looking for IMAP folders in home directory (/home/martynas) instead of special directory (/data/mail/martynas) after I recompiled imapd with these changes. I can see this with truss command.


If you will have other ideas - please let me know. Thank you very much for your time and efforts.

Is there anywhere documented what is black box ?

With best regards
Martynas Buozis


Mark Crispin wrote:
If you want to use a directory different from the home directory, then
just rewrite routine mymailboxdir() to do what you want, e.g.

static char *mymailboxdir ()
{
  unsigned long flags;
  char *user = myusername_full (&flags);
                                /* initialize if first time and logged in */
  if (!myMailboxDir && (flags & MU_LOGGEDIN)) {
    char tmp[MAILTMPLEN];
    sprintf (tmp,"/data/mail/%s",myusername ());
    myMailboxDir = cpystr (tmp);/* use subdirectory of /data/mail */
  }
  return myMailboxDir ? myMailboxDir : "";
}


Do not use the black box stuff. It will not do what you want.


-- Mark --

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



Reply via email to