bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imap4d virtual domains


From: Alain Magloire
Subject: Re: imap4d virtual domains
Date: Wed, 29 Aug 2001 22:39:53 -0400 (EDT)

> 
> OK, I said it should be fairly easy to add the pop3d virtual domain
> code to imap4d, and it was. It seems to work nicely with two issues:
> 
> 1) When I list mailboxes, I now get two INBOX folders.
> 2) It will take a little more looking into the RENAME function to get
>    that right, I left it as-is for now, which means it will behave in
>    an unknown manner if a virtual domain user tries to rename INBOX.
> 

Yes, I see,  the problem is the way the code get the default INBOX pathname.
It relies on  things like this:
        struct passwd *pw = getpwuid (getuid());
        mailbox_name = strdup ((pw) ? pw->pw_name : "");
       ....

Probably the simplest thing to do is at login to set a global variable
call default_inbox, that will be set on authentication(login.c), 
no need to call getpwuid(getuid()), will solve the problem.

--
alain




reply via email to

[Prev in Thread] Current Thread [Next in Thread]