Hello,
Thanks for your kind reply, I am getting following results for the code
snippet below.
*// Default mapiprofile holds profile for the administrator account for
exchange server 2003.
char testone[8] = "testone"; // Trying to open this test account..
/* Open Other user message Store */
mapi_object_init(&obj_store);
retval = OpenUserMailbox(session, testone, &obj_store);
if (retval != MAPI_E_SUCCESS) {
mapi_errstr("OpenUserMailbox", GetLastError());
exit (1);
}
MAPI_RETVAL_IF(retval, retval, NULL);
olFolder = getTypeOfDisplay(); // I get the selection for the type of
folders in olFolder , full code attached in pervious email.
/* Find Inbox default folder */
retval = GetDefaultFolder(&obj_store, &id_inbox, olFolder);
if (retval != MAPI_E_SUCCESS) {
mapi_errstr("OpenDefaultFolder", GetLastError());
exit (1);
}
MAPI_RETVAL_IF(retval, retval, NULL);
/* Open Inbox folder */
mapi_object_init(&obj_folder);
retval = OpenFolder(&obj_store, id_inbox, &obj_folder);
if (retval != MAPI_E_SUCCESS) {
mapi_errstr("OpenFolder", GetLastError());
exit (1);
}
MAPI_RETVAL_IF(retval, retval, NULL);
*I use to get this error at the lines bolded above, I get an error at *
GetDefaultFolder* case, when I try to open the mailbox of my user "testone"
from my administrative rights account, but the user "testone" have that
folder empty, for like if the testone have an empty Notes my program ends at
GetDefaultFolder when I try to open it for testone giving this error.
OpenDefaultFolder : MAPI_E_NOT_FOUND (0x8004010F)
If the folder that I want to open is not empty, my code proceeds to
OpenFolder and there i get the same error
OpenFolder : MAPI_E_NOT_FOUND (0x8004010F)
I am trying to open my testone user mailbox from my admistrative user rights
account for the exchange server. I have checked the code by changing *char
testone[8] = "testone";* to *char testone[8] = "administrator";* The default
user id, it works fine.
I hope, I am able to state my problem a little more clearly.
Kind regards,
Khan, Muhammad Rameez.
On Fri, Apr 17, 2009 at 8:37 AM, Brad Hards <[email protected]> wrote:
> On Thursday 16 April 2009 05:21:50 pm Rameez Khan wrote:
> > I am not able to open the mailbox for my user "testone".
> It usually helps if you can explain what doesn't work. For example, are you
> getting an error message? Are you getting a segfault?
>
> There is an open task on trac for opening another users account:
> http://trac.openchange.org/ticket/129
>
> You could wait for that to be resolved.
>
> Brad
>
>
>
>
--
Muhammad Rameez Khan
Cell -> 0046-73-7055073
Mail -> [email protected]
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel