|
|
|
date: Thu, 19 Jun 2008 21:21:38 -0700,
group: microsoft.public.platformsdk.mapi
back
Re: Getting hold of IAddrBook for doing Free busy
If an entry id is a one-off address or a GAL object, you can easily parse
the entry id.
Correct me if I am wrong, but the FB API assumes that you will be handling
your private address types (e.g. PR_ADDRTYPE will be your own unique type,
not something Outlook knows about, such as "SMTP" or "EX") since the FB
providers are registered based on the address type. In such a case, the
entry id will be produced by your own AB provider, so you will know how to
parse it.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Param Jyothi Reddy" wrote in message
news:%23hOQj0o0IHA.2064@TK2MSFTNGP05.phx.gbl...
> Hi,
> I would be using the Free/Busy provider API. IFreeBusySupport accepts
> FBUser which has entry id for IMailUser. I would have to do OpenEntry on
> this entry id to get IMailUser object. For doing this i should some how
> lay my hands on either IAddrBook (preferably) or IMAPISupport. Neither of
> these are passed while initiaizing IFreeBusySupport.
>
> This would mean that i would need to somehow hold on to the IMapiSupport
> passed to the MSProvider's logon in some global variable and make it
> accessible to IFreeBusySupport. This seems kind of flaky to me.
> Alternatively i could open the IAddrBook using IMAPISession, however for
> doing this too i would somenow need the name of profile which i would have
> to remember from the IMAPISupport's profile section routines.
>
> Both of these are kind of bad because:
> 1) this meana that this provider can be used only once with the profile.
> 2) It is highly dependent on order of initialization (msstore inited
> before IFreeBusySupport is created, this is currently the case (i coudl
> also return E_FAIL till global var is non null).
>
> Is there any other thing that i am really missing which would knock these
> issues out and i could get hold of the interfaces needed for
> IFreeBusySupport without doing these hacks? What is the best way to do
> this?
>
> Param
>
date: Thu, 19 Jun 2008 21:56:52 -0700
author: Dmitry Streblechenko
Re: Getting hold of IAddrBook for doing Free busy
I was Hooking up to SMTP for now (dont have address book currently). I will
look at the content of entry id's i am getting and see if/how i can parse
it. For experiments i am using contacts address book though.
So i gather that the recomended way is to parse the entry id's rahter than
trying to open IMailUser right?
Thanks,
Param
"Dmitry Streblechenko" wrote in message
news:u9NcRIp0IHA.548@TK2MSFTNGP06.phx.gbl...
> If an entry id is a one-off address or a GAL object, you can easily parse
> the entry id.
> Correct me if I am wrong, but the FB API assumes that you will be handling
> your private address types (e.g. PR_ADDRTYPE will be your own unique type,
> not something Outlook knows about, such as "SMTP" or "EX") since the FB
> providers are registered based on the address type. In such a case, the
> entry id will be produced by your own AB provider, so you will know how to
> parse it.
>
> --
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
> -
> "Param Jyothi Reddy" wrote in message
> news:%23hOQj0o0IHA.2064@TK2MSFTNGP05.phx.gbl...
>> Hi,
>> I would be using the Free/Busy provider API. IFreeBusySupport accepts
>> FBUser which has entry id for IMailUser. I would have to do OpenEntry on
>> this entry id to get IMailUser object. For doing this i should some how
>> lay my hands on either IAddrBook (preferably) or IMAPISupport. Neither of
>> these are passed while initiaizing IFreeBusySupport.
>>
>> This would mean that i would need to somehow hold on to the IMapiSupport
>> passed to the MSProvider's logon in some global variable and make it
>> accessible to IFreeBusySupport. This seems kind of flaky to me.
>> Alternatively i could open the IAddrBook using IMAPISession, however for
>> doing this too i would somenow need the name of profile which i would
>> have to remember from the IMAPISupport's profile section routines.
>>
>> Both of these are kind of bad because:
>> 1) this meana that this provider can be used only once with the profile.
>> 2) It is highly dependent on order of initialization (msstore inited
>> before IFreeBusySupport is created, this is currently the case (i coudl
>> also return E_FAIL till global var is non null).
>>
>> Is there any other thing that i am really missing which would knock these
>> issues out and i could get hold of the interfaces needed for
>> IFreeBusySupport without doing these hacks? What is the best way to do
>> this?
>>
>> Param
>>
>
>
date: Fri, 20 Jun 2008 10:36:20 -0700
author: Param Jyothi Reddy
Re: Getting hold of IAddrBook for doing Free busy
I don't know if that is the recommended way, or if there is a recommended
way, this just what I'd do.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Param Jyothi Reddy" wrote in message
news:uX2hqwv0IHA.4772@TK2MSFTNGP03.phx.gbl...
>I was Hooking up to SMTP for now (dont have address book currently). I will
>look at the content of entry id's i am getting and see if/how i can parse
>it. For experiments i am using contacts address book though.
>
> So i gather that the recomended way is to parse the entry id's rahter than
> trying to open IMailUser right?
>
> Thanks,
> Param
>
> "Dmitry Streblechenko" wrote in message
> news:u9NcRIp0IHA.548@TK2MSFTNGP06.phx.gbl...
>> If an entry id is a one-off address or a GAL object, you can easily parse
>> the entry id.
>> Correct me if I am wrong, but the FB API assumes that you will be
>> handling your private address types (e.g. PR_ADDRTYPE will be your own
>> unique type, not something Outlook knows about, such as "SMTP" or "EX")
>> since the FB providers are registered based on the address type. In such
>> a case, the entry id will be produced by your own AB provider, so you
>> will know how to parse it.
>>
>> --
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy - Outlook, CDO
>> and MAPI Developer Tool
>> -
>> "Param Jyothi Reddy" wrote in message
>> news:%23hOQj0o0IHA.2064@TK2MSFTNGP05.phx.gbl...
>>> Hi,
>>> I would be using the Free/Busy provider API. IFreeBusySupport accepts
>>> FBUser which has entry id for IMailUser. I would have to do OpenEntry on
>>> this entry id to get IMailUser object. For doing this i should some how
>>> lay my hands on either IAddrBook (preferably) or IMAPISupport. Neither
>>> of these are passed while initiaizing IFreeBusySupport.
>>>
>>> This would mean that i would need to somehow hold on to the IMapiSupport
>>> passed to the MSProvider's logon in some global variable and make it
>>> accessible to IFreeBusySupport. This seems kind of flaky to me.
>>> Alternatively i could open the IAddrBook using IMAPISession, however for
>>> doing this too i would somenow need the name of profile which i would
>>> have to remember from the IMAPISupport's profile section routines.
>>>
>>> Both of these are kind of bad because:
>>> 1) this meana that this provider can be used only once with the profile.
>>> 2) It is highly dependent on order of initialization (msstore inited
>>> before IFreeBusySupport is created, this is currently the case (i coudl
>>> also return E_FAIL till global var is non null).
>>>
>>> Is there any other thing that i am really missing which would knock
>>> these issues out and i could get hold of the interfaces needed for
>>> IFreeBusySupport without doing these hacks? What is the best way to do
>>> this?
>>>
>>> Param
>>>
>>
>>
>
>
date: Fri, 20 Jun 2008 10:57:37 -0700
author: Dmitry Streblechenko
Re: Getting hold of IAddrBook for doing Free busy
Played arround with this a bit. When i get one off entry, as you said the
entry id actually does contain the email id and SMTP.
If it comes from my address book, i could also put the email id in the entry
id.
However there seems to be another way to get these, and that is through
contab. For these the entrty id does not contain the email id (Actually its
entry id is documented well, and one can extract the contacts's entry id
form it, however that would also mean i need to get hold of MAPI object that
will help me open the contact so that i can read the email off it). Does
this seem right?
"Dmitry Streblechenko" wrote in message
news:%23jOMd8v0IHA.3756@TK2MSFTNGP04.phx.gbl...
>I don't know if that is the recommended way, or if there is a recommended
>way, this just what I'd do.
>
> --
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
> -
> "Param Jyothi Reddy" wrote in message
> news:uX2hqwv0IHA.4772@TK2MSFTNGP03.phx.gbl...
>>I was Hooking up to SMTP for now (dont have address book currently). I
>>will look at the content of entry id's i am getting and see if/how i can
>>parse it. For experiments i am using contacts address book though.
>>
>> So i gather that the recomended way is to parse the entry id's rahter
>> than trying to open IMailUser right?
>>
>> Thanks,
>> Param
>>
>> "Dmitry Streblechenko" wrote in message
>> news:u9NcRIp0IHA.548@TK2MSFTNGP06.phx.gbl...
>>> If an entry id is a one-off address or a GAL object, you can easily
>>> parse the entry id.
>>> Correct me if I am wrong, but the FB API assumes that you will be
>>> handling your private address types (e.g. PR_ADDRTYPE will be your own
>>> unique type, not something Outlook knows about, such as "SMTP" or "EX")
>>> since the FB providers are registered based on the address type. In such
>>> a case, the entry id will be produced by your own AB provider, so you
>>> will know how to parse it.
>>>
>>> --
>>> Dmitry Streblechenko (MVP)
>>> http://www.dimastr.com/
>>> OutlookSpy - Outlook, CDO
>>> and MAPI Developer Tool
>>> -
>>> "Param Jyothi Reddy" wrote in message
>>> news:%23hOQj0o0IHA.2064@TK2MSFTNGP05.phx.gbl...
>>>> Hi,
>>>> I would be using the Free/Busy provider API. IFreeBusySupport accepts
>>>> FBUser which has entry id for IMailUser. I would have to do OpenEntry
>>>> on this entry id to get IMailUser object. For doing this i should some
>>>> how lay my hands on either IAddrBook (preferably) or IMAPISupport.
>>>> Neither of these are passed while initiaizing IFreeBusySupport.
>>>>
>>>> This would mean that i would need to somehow hold on to the
>>>> IMapiSupport passed to the MSProvider's logon in some global variable
>>>> and make it accessible to IFreeBusySupport. This seems kind of flaky to
>>>> me. Alternatively i could open the IAddrBook using IMAPISession,
>>>> however for doing this too i would somenow need the name of profile
>>>> which i would have to remember from the IMAPISupport's profile section
>>>> routines.
>>>>
>>>> Both of these are kind of bad because:
>>>> 1) this meana that this provider can be used only once with the
>>>> profile.
>>>> 2) It is highly dependent on order of initialization (msstore inited
>>>> before IFreeBusySupport is created, this is currently the case (i coudl
>>>> also return E_FAIL till global var is non null).
>>>>
>>>> Is there any other thing that i am really missing which would knock
>>>> these issues out and i could get hold of the interfaces needed for
>>>> IFreeBusySupport without doing these hacks? What is the best way to do
>>>> this?
>>>>
>>>> Param
>>>>
>>>
>>>
>>
>>
>
>
date: Fri, 20 Jun 2008 21:29:16 -0700
author: Param Jyothi Reddy
Re: Getting hold of IAddrBook for doing Free busy
That sounds right. But keep in mind that OAB entry id will be replaced with
a one-off when the message is sent, and it is never present on an incoming
message.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Param Jyothi Reddy" wrote in message
news:uCBOed10IHA.2064@TK2MSFTNGP05.phx.gbl...
> Played arround with this a bit. When i get one off entry, as you said the
> entry id actually does contain the email id and SMTP.
> If it comes from my address book, i could also put the email id in the
> entry id.
>
> However there seems to be another way to get these, and that is through
> contab. For these the entrty id does not contain the email id (Actually
> its entry id is documented well, and one can extract the contacts's entry
> id form it, however that would also mean i need to get hold of MAPI object
> that will help me open the contact so that i can read the email off it).
> Does this seem right?
>
> "Dmitry Streblechenko" wrote in message
> news:%23jOMd8v0IHA.3756@TK2MSFTNGP04.phx.gbl...
>>I don't know if that is the recommended way, or if there is a recommended
>>way, this just what I'd do.
>>
>> --
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy - Outlook, CDO
>> and MAPI Developer Tool
>> -
>> "Param Jyothi Reddy" wrote in message
>> news:uX2hqwv0IHA.4772@TK2MSFTNGP03.phx.gbl...
>>>I was Hooking up to SMTP for now (dont have address book currently). I
>>>will look at the content of entry id's i am getting and see if/how i can
>>>parse it. For experiments i am using contacts address book though.
>>>
>>> So i gather that the recomended way is to parse the entry id's rahter
>>> than trying to open IMailUser right?
>>>
>>> Thanks,
>>> Param
>>>
>>> "Dmitry Streblechenko" wrote in message
>>> news:u9NcRIp0IHA.548@TK2MSFTNGP06.phx.gbl...
>>>> If an entry id is a one-off address or a GAL object, you can easily
>>>> parse the entry id.
>>>> Correct me if I am wrong, but the FB API assumes that you will be
>>>> handling your private address types (e.g. PR_ADDRTYPE will be your own
>>>> unique type, not something Outlook knows about, such as "SMTP" or "EX")
>>>> since the FB providers are registered based on the address type. In
>>>> such a case, the entry id will be produced by your own AB provider, so
>>>> you will know how to parse it.
>>>>
>>>> --
>>>> Dmitry Streblechenko (MVP)
>>>> http://www.dimastr.com/
>>>> OutlookSpy - Outlook, CDO
>>>> and MAPI Developer Tool
>>>> -
>>>> "Param Jyothi Reddy" wrote in message
>>>> news:%23hOQj0o0IHA.2064@TK2MSFTNGP05.phx.gbl...
>>>>> Hi,
>>>>> I would be using the Free/Busy provider API. IFreeBusySupport accepts
>>>>> FBUser which has entry id for IMailUser. I would have to do OpenEntry
>>>>> on this entry id to get IMailUser object. For doing this i should some
>>>>> how lay my hands on either IAddrBook (preferably) or IMAPISupport.
>>>>> Neither of these are passed while initiaizing IFreeBusySupport.
>>>>>
>>>>> This would mean that i would need to somehow hold on to the
>>>>> IMapiSupport passed to the MSProvider's logon in some global variable
>>>>> and make it accessible to IFreeBusySupport. This seems kind of flaky
>>>>> to me. Alternatively i could open the IAddrBook using IMAPISession,
>>>>> however for doing this too i would somenow need the name of profile
>>>>> which i would have to remember from the IMAPISupport's profile section
>>>>> routines.
>>>>>
>>>>> Both of these are kind of bad because:
>>>>> 1) this meana that this provider can be used only once with the
>>>>> profile.
>>>>> 2) It is highly dependent on order of initialization (msstore inited
>>>>> before IFreeBusySupport is created, this is currently the case (i
>>>>> coudl also return E_FAIL till global var is non null).
>>>>>
>>>>> Is there any other thing that i am really missing which would knock
>>>>> these issues out and i could get hold of the interfaces needed for
>>>>> IFreeBusySupport without doing these hacks? What is the best way to do
>>>>> this?
>>>>>
>>>>> Param
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
date: Sat, 21 Jun 2008 12:33:37 -0700
author: Dmitry Streblechenko
|
|