Hi Mark,

Thanks for the patch and sorry for the delay of my reply.

As far as I see, there is 2 approaches we can use to solve this issue in
libmapi:

        1. Option1: We want to open additional mailboxes the way users
        usually do in Outlook. In this case, I don't think we should add
        a new OpenMsgStore function but store/fetch this information
        (additional mailbox names) in/from the user profile when needed.
        
        At the current stage, libmapi only allows to open a single
        session, which means access a unique mailbox/pf store; opening
        additional mailboxes require we handle multiple session
        properly. 
        
        This is the kind of features we should be able to provide and
        improve as soon as we have the correct implementation to support
        it. This has been marked for a requirement to libmapi-0.7 or 0.8
        and we will be able to provide correct implementation at this
        point.


        2. Option2: IIRC your initial objective was to access all your
        users mailboxes using a single MAPI profile == open 1 different
        mailbox each time you launch openchangeclient. In this
        particular case, your solution would fits better than the one
        exposed above, but I would anyway suggest we rely on the mailbox
        path from the user profile to fetch common parts rather than
        asking developers to write it on their own.
        
        Once I have finished with my current TODO, I'll work on an
        implementation matching the requirements exposed in previous
        paragraph. I think adding a function which sets the mailbox
        username prior it calls OpenMsgStore but after the profile is
        loaded would fit here.

Regards,

Julien.

On Mon, 2007-09-17 at 20:56 +0100, Mark Ridley wrote:
> Hi,
> 
> I recently logged a message on the forum about accessing another users
> mailbox if that mailbox has permissions set to do so.
> 
> This can be done by changing the mailbox name in OpenMsgStore on
> IMAPISession.c. 
> I.e. Changing 
> 
> /o=DOMAIN/ou=first administrative group/cn=Recipients/cn=user1
> 
> to 
> 
> /o=DOMAIN/ou=first administrative group/cn=Recipients/cn=user2
> 
> user2 must have allowed user1 access to their mailbox.
> 
> I have added coded to IMAPISession.c to add a new function, almost identical
> to OpenMsgStore but which takes parameter of mailbox.
> 
> To test, I have added a new parameter to openchangeclient, --othermailbox
> 
> i.e.
> 
> If the default profile is user1, but you need to look at user2's email:
> 
> openchangeclient --fetchmail --othermailbox="/o=DOMAIN/ou=first
> administrative group/cn=Recipients/cn=user2"
> 
> Code is attached.
> 
> Regards
> 
> Mark

-- 
Julien Kerihuel
[EMAIL PROTECTED]
OpenChange Project Manager

GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to