Group:  Microsoft Outlook ยป microsoft.public.outlook
Thread: Converting individual mailbox to a file using MAPI

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Converting individual mailbox to a file using MAPI
duraisridhar[ at ]gmail.com 18.08.2006 05:19:34
Hi All,

I am looking for a way to backup individual mail box of our Exchange
Server 2003.I want to convert my individual mail box to a file and
backup it. Can any help me with what MAPI methods i can achive
this(though MAPI is not designed for backup). Should I read each mail
of mail box and write it to a file ?.

Any help on this will be greatly apppreciated.

Regards,
Sridhar D

Re: Converting individual mailbox to a file using MAPI
duraisridhar[ at ]gmail.com 18.08.2006 12:05:41

Hi All,
After googling, I understand that exporting mailbox to .pst file can
be achieved through NameSpace functions and CopyTo method Is there any
methods equivalent to NameSpace AddStore?. I doesn't want to include
MFC in project.

Regards,
Sridhar D
duraisridhar[ at ]gmail.com wrote:
[Quoted Text]
> Hi All,
>
> I am looking for a way to backup individual mail box of our Exchange
> Server 2003.I want to convert my individual mail box to a file and
> backup it. Can any help me with what MAPI methods i can achive
> this(though MAPI is not designed for backup). Should I read each mail
> of mail box and write it to a file ?.
>
> Any help on this will be greatly apppreciated.
>
> Regards,
> Sridhar D

Re: Converting individual mailbox to a file using MAPI
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 18.08.2006 16:55:25
First of all, NameSpace AddStore has absolutely nothing to with MFC - it is
an Outlook Object Model method, which can be called with or without MFC.
If you don't want to use OOM but prefer Extended MAPI, you will need to add
and configure the "MSPST MS" service (or "MSUPST MS" in case of Unicode PST
in Outlook 2003) - there were numerous posts dealing with this subject in
this newsgroup, e.g. see
http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/cd68e7e9d5ab93fd/2b771b3730022d77?tvc=2&q=streblechenko+mspst+ms&hl=en#2b771b3730022d77

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

<duraisridhar[ at ]gmail.com> wrote in message
news:1155902741.792664.206840[ at ]h48g2000cwc.googlegroups.com...
[Quoted Text]
>
> Hi All,
> After googling, I understand that exporting mailbox to .pst file can
> be achieved through NameSpace functions and CopyTo method Is there any
> methods equivalent to NameSpace AddStore?. I doesn't want to include
> MFC in project.
>
> Regards,
> Sridhar D
> duraisridhar[ at ]gmail.com wrote:
>> Hi All,
>>
>> I am looking for a way to backup individual mail box of our Exchange
>> Server 2003.I want to convert my individual mail box to a file and
>> backup it. Can any help me with what MAPI methods i can achive
>> this(though MAPI is not designed for backup). Should I read each mail
>> of mail box and write it to a file ?.
>>
>> Any help on this will be greatly apppreciated.
>>
>> Regards,
>> Sridhar D
>


Re: Converting individual mailbox to a file using MAPI
duraisridhar[ at ]gmail.com 19.08.2006 14:12:57
Hi Dmitry ,
Thanks for your input. How should I copy my Mail box after
configuring the MSUPST MS service . Any MAPI methods to accompilish my
primary goal of copying mail box to .pst file while using the "MSUPST
MS" service.

Thanks for your time,
Regards,
Sridhar D

Dmitry Streblechenko wrote:
[Quoted Text]
> First of all, NameSpace AddStore has absolutely nothing to with MFC - it is
> an Outlook Object Model method, which can be called with or without MFC.
> If you don't want to use OOM but prefer Extended MAPI, you will need to add
> and configure the "MSPST MS" service (or "MSUPST MS" in case of Unicode PST
> in Outlook 2003) - there were numerous posts dealing with this subject in
> this newsgroup, e.g. see
> http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/cd68e7e9d5ab93fd/2b771b3730022d77?tvc=2&q=streblechenko+mspst+ms&hl=en#2b771b3730022d77
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> <duraisridhar[ at ]gmail.com> wrote in message
> news:1155902741.792664.206840[ at ]h48g2000cwc.googlegroups.com...
> >
> > Hi All,
> > After googling, I understand that exporting mailbox to .pst file can
> > be achieved through NameSpace functions and CopyTo method Is there any
> > methods equivalent to NameSpace AddStore?. I doesn't want to include
> > MFC in project.
> >
> > Regards,
> > Sridhar D
> > duraisridhar[ at ]gmail.com wrote:
> >> Hi All,
> >>
> >> I am looking for a way to backup individual mail box of our Exchange
> >> Server 2003.I want to convert my individual mail box to a file and
> >> backup it. Can any help me with what MAPI methods i can achive
> >> this(though MAPI is not designed for backup). Should I read each mail
> >> of mail box and write it to a file ?.
> >>
> >> Any help on this will be greatly apppreciated.
> >>
> >> Regards,
> >> Sridhar D
> >

Re: Converting individual mailbox to a file using MAPI
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 19.08.2006 21:24:44
Open the PST store you just added (IMsgStore), then copy the messages/folder
from the exchange store to the newly added PST store.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

<duraisridhar[ at ]gmail.com> wrote in message
news:1155996777.193974.82550[ at ]p79g2000cwp.googlegroups.com...
[Quoted Text]
> Hi Dmitry ,
> Thanks for your input. How should I copy my Mail box after
> configuring the MSUPST MS service . Any MAPI methods to accompilish my
> primary goal of copying mail box to .pst file while using the "MSUPST
> MS" service.
>
> Thanks for your time,
> Regards,
> Sridhar D
>
> Dmitry Streblechenko wrote:
>> First of all, NameSpace AddStore has absolutely nothing to with MFC - it
>> is
>> an Outlook Object Model method, which can be called with or without MFC.
>> If you don't want to use OOM but prefer Extended MAPI, you will need to
>> add
>> and configure the "MSPST MS" service (or "MSUPST MS" in case of Unicode
>> PST
>> in Outlook 2003) - there were numerous posts dealing with this subject in
>> this newsgroup, e.g. see
>> http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/cd68e7e9d5ab93fd/2b771b3730022d77?tvc=2&q=streblechenko+mspst+ms&hl=en#2b771b3730022d77
>>
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy - Outlook, CDO
>> and MAPI Developer Tool
>>
>> <duraisridhar[ at ]gmail.com> wrote in message
>> news:1155902741.792664.206840[ at ]h48g2000cwc.googlegroups.com...
>> >
>> > Hi All,
>> > After googling, I understand that exporting mailbox to .pst file can
>> > be achieved through NameSpace functions and CopyTo method Is there any
>> > methods equivalent to NameSpace AddStore?. I doesn't want to include
>> > MFC in project.
>> >
>> > Regards,
>> > Sridhar D
>> > duraisridhar[ at ]gmail.com wrote:
>> >> Hi All,
>> >>
>> >> I am looking for a way to backup individual mail box of our Exchange
>> >> Server 2003.I want to convert my individual mail box to a file and
>> >> backup it. Can any help me with what MAPI methods i can achive
>> >> this(though MAPI is not designed for backup). Should I read each mail
>> >> of mail box and write it to a file ?.
>> >>
>> >> Any help on this will be greatly apppreciated.
>> >>
>> >> Regards,
>> >> Sridhar D
>> >
>


Re: Converting individual mailbox to a file using MAPI
duraisridhar[ at ]gmail.com 21.08.2006 14:21:36
Hi,
Thanks for your suggestions. I tried copying individual mailbox to
newly created folder, but CopyTo call failed with error
MAPI_E_NOT_FOUND. Both the store opened with MAPI_BEST_ACCESS and
lpInterface value NULL(default) while opening. The lpInterface value in
CopyTo method is IID_IMsgStore.Here is what I'm passing to CopyTo
method.

HRESULT copyResult = oldlpMDB->CopyTo(0, NULL, NULL, 0, NULL,
(LPCIID)&IID_IMsgStore,
newLPMDB,
0,
&lpspropProblemArray);

Can any one guess where I'm going wrong.
Thanks in Advance,

Thanks & Regards,
Sridhar D

Dmitry Streblechenko wrote:
[Quoted Text]
> Open the PST store you just added (IMsgStore), then copy the messages/folder
> from the exchange store to the newly added PST store.
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> <duraisridhar[ at ]gmail.com> wrote in message
> news:1155996777.193974.82550[ at ]p79g2000cwp.googlegroups.com...
> > Hi Dmitry ,
> > Thanks for your input. How should I copy my Mail box after
> > configuring the MSUPST MS service . Any MAPI methods to accompilish my
> > primary goal of copying mail box to .pst file while using the "MSUPST
> > MS" service.
> >
> > Thanks for your time,
> > Regards,
> > Sridhar D
> >
> > Dmitry Streblechenko wrote:
> >> First of all, NameSpace AddStore has absolutely nothing to with MFC - it
> >> is
> >> an Outlook Object Model method, which can be called with or without MFC.
> >> If you don't want to use OOM but prefer Extended MAPI, you will need to
> >> add
> >> and configure the "MSPST MS" service (or "MSUPST MS" in case of Unicode
> >> PST
> >> in Outlook 2003) - there were numerous posts dealing with this subject in
> >> this newsgroup, e.g. see
> >> http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/cd68e7e9d5ab93fd/2b771b3730022d77?tvc=2&q=streblechenko+mspst+ms&hl=en#2b771b3730022d77
> >>
> >> Dmitry Streblechenko (MVP)
> >> http://www.dimastr.com/
> >> OutlookSpy - Outlook, CDO
> >> and MAPI Developer Tool
> >>
> >> <duraisridhar[ at ]gmail.com> wrote in message
> >> news:1155902741.792664.206840[ at ]h48g2000cwc.googlegroups.com...
> >> >
> >> > Hi All,
> >> > After googling, I understand that exporting mailbox to .pst file can
> >> > be achieved through NameSpace functions and CopyTo method Is there any
> >> > methods equivalent to NameSpace AddStore?. I doesn't want to include
> >> > MFC in project.
> >> >
> >> > Regards,
> >> > Sridhar D
> >> > duraisridhar[ at ]gmail.com wrote:
> >> >> Hi All,
> >> >>
> >> >> I am looking for a way to backup individual mail box of our Exchange
> >> >> Server 2003.I want to convert my individual mail box to a file and
> >> >> backup it. Can any help me with what MAPI methods i can achive
> >> >> this(though MAPI is not designed for backup). Should I read each mail
> >> >> of mail box and write it to a file ?.
> >> >>
> >> >> Any help on this will be greatly apppreciated.
> >> >>
> >> >> Regards,
> >> >> Sridhar D
> >> >
> >

Re: Converting individual mailbox to a file using MAPI
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 21.08.2006 18:45:35
Use IMAPIFolder::CopyFolder/CopyMessages methods.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

<duraisridhar[ at ]gmail.com> wrote in message
news:1156170096.834397.17880[ at ]m73g2000cwd.googlegroups.com...
[Quoted Text]
> Hi,
> Thanks for your suggestions. I tried copying individual mailbox to
> newly created folder, but CopyTo call failed with error
> MAPI_E_NOT_FOUND. Both the store opened with MAPI_BEST_ACCESS and
> lpInterface value NULL(default) while opening. The lpInterface value in
> CopyTo method is IID_IMsgStore.Here is what I'm passing to CopyTo
> method.
>
> HRESULT copyResult = oldlpMDB->CopyTo(0, NULL, NULL, 0, NULL,
> (LPCIID)&IID_IMsgStore,
> newLPMDB,
> 0,
> &lpspropProblemArray);
>
> Can any one guess where I'm going wrong.
> Thanks in Advance,
>
> Thanks & Regards,
> Sridhar D
>
> Dmitry Streblechenko wrote:
>> Open the PST store you just added (IMsgStore), then copy the
>> messages/folder
>> from the exchange store to the newly added PST store.
>>
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy - Outlook, CDO
>> and MAPI Developer Tool
>>
>> <duraisridhar[ at ]gmail.com> wrote in message
>> news:1155996777.193974.82550[ at ]p79g2000cwp.googlegroups.com...
>> > Hi Dmitry ,
>> > Thanks for your input. How should I copy my Mail box after
>> > configuring the MSUPST MS service . Any MAPI methods to accompilish my
>> > primary goal of copying mail box to .pst file while using the "MSUPST
>> > MS" service.
>> >
>> > Thanks for your time,
>> > Regards,
>> > Sridhar D
>> >
>> > Dmitry Streblechenko wrote:
>> >> First of all, NameSpace AddStore has absolutely nothing to with MFC -
>> >> it
>> >> is
>> >> an Outlook Object Model method, which can be called with or without
>> >> MFC.
>> >> If you don't want to use OOM but prefer Extended MAPI, you will need
>> >> to
>> >> add
>> >> and configure the "MSPST MS" service (or "MSUPST MS" in case of
>> >> Unicode
>> >> PST
>> >> in Outlook 2003) - there were numerous posts dealing with this subject
>> >> in
>> >> this newsgroup, e.g. see
>> >> http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/cd68e7e9d5ab93fd/2b771b3730022d77?tvc=2&q=streblechenko+mspst+ms&hl=en#2b771b3730022d77
>> >>
>> >> Dmitry Streblechenko (MVP)
>> >> http://www.dimastr.com/
>> >> OutlookSpy - Outlook, CDO
>> >> and MAPI Developer Tool
>> >>
>> >> <duraisridhar[ at ]gmail.com> wrote in message
>> >> news:1155902741.792664.206840[ at ]h48g2000cwc.googlegroups.com...
>> >> >
>> >> > Hi All,
>> >> > After googling, I understand that exporting mailbox to .pst file can
>> >> > be achieved through NameSpace functions and CopyTo method Is there
>> >> > any
>> >> > methods equivalent to NameSpace AddStore?. I doesn't want to include
>> >> > MFC in project.
>> >> >
>> >> > Regards,
>> >> > Sridhar D
>> >> > duraisridhar[ at ]gmail.com wrote:
>> >> >> Hi All,
>> >> >>
>> >> >> I am looking for a way to backup individual mail box of our
>> >> >> Exchange
>> >> >> Server 2003.I want to convert my individual mail box to a file and
>> >> >> backup it. Can any help me with what MAPI methods i can achive
>> >> >> this(though MAPI is not designed for backup). Should I read each
>> >> >> mail
>> >> >> of mail box and write it to a file ?.
>> >> >>
>> >> >> Any help on this will be greatly apppreciated.
>> >> >>
>> >> >> Regards,
>> >> >> Sridhar D
>> >> >
>> >
>


Re: Converting individual mailbox to a file using MAPI
duraisridhar[ at ]gmail.com 22.08.2006 10:34:34
Hi Dmitry ,

It worked like a charm . Thanks for your quick responses.

Regards,
Sridhar D

Dmitry Streblechenko wrote:
[Quoted Text]
> Use IMAPIFolder::CopyFolder/CopyMessages methods.
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> <duraisridhar[ at ]gmail.com> wrote in message
> news:1156170096.834397.17880[ at ]m73g2000cwd.googlegroups.com...
> > Hi,
> > Thanks for your suggestions. I tried copying individual mailbox to
> > newly created folder, but CopyTo call failed with error
> > MAPI_E_NOT_FOUND. Both the store opened with MAPI_BEST_ACCESS and
> > lpInterface value NULL(default) while opening. The lpInterface value in
> > CopyTo method is IID_IMsgStore.Here is what I'm passing to CopyTo
> > method.
> >
> > HRESULT copyResult = oldlpMDB->CopyTo(0, NULL, NULL, 0, NULL,
> > (LPCIID)&IID_IMsgStore,
> > newLPMDB,
> > 0,
> > &lpspropProblemArray);
> >
> > Can any one guess where I'm going wrong.
> > Thanks in Advance,
> >
> > Thanks & Regards,
> > Sridhar D
> >
> > Dmitry Streblechenko wrote:
> >> Open the PST store you just added (IMsgStore), then copy the
> >> messages/folder
> >> from the exchange store to the newly added PST store.
> >>
> >> Dmitry Streblechenko (MVP)
> >> http://www.dimastr.com/
> >> OutlookSpy - Outlook, CDO
> >> and MAPI Developer Tool
> >>
> >> <duraisridhar[ at ]gmail.com> wrote in message
> >> news:1155996777.193974.82550[ at ]p79g2000cwp.googlegroups.com...
> >> > Hi Dmitry ,
> >> > Thanks for your input. How should I copy my Mail box after
> >> > configuring the MSUPST MS service . Any MAPI methods to accompilish my
> >> > primary goal of copying mail box to .pst file while using the "MSUPST
> >> > MS" service.
> >> >
> >> > Thanks for your time,
> >> > Regards,
> >> > Sridhar D
> >> >
> >> > Dmitry Streblechenko wrote:
> >> >> First of all, NameSpace AddStore has absolutely nothing to with MFC -
> >> >> it
> >> >> is
> >> >> an Outlook Object Model method, which can be called with or without
> >> >> MFC.
> >> >> If you don't want to use OOM but prefer Extended MAPI, you will need
> >> >> to
> >> >> add
> >> >> and configure the "MSPST MS" service (or "MSUPST MS" in case of
> >> >> Unicode
> >> >> PST
> >> >> in Outlook 2003) - there were numerous posts dealing with this subject
> >> >> in
> >> >> this newsgroup, e.g. see
> >> >> http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/cd68e7e9d5ab93fd/2b771b3730022d77?tvc=2&q=streblechenko+mspst+ms&hl=en#2b771b3730022d77
> >> >>
> >> >> Dmitry Streblechenko (MVP)
> >> >> http://www.dimastr.com/
> >> >> OutlookSpy - Outlook, CDO
> >> >> and MAPI Developer Tool
> >> >>
> >> >> <duraisridhar[ at ]gmail.com> wrote in message
> >> >> news:1155902741.792664.206840[ at ]h48g2000cwc.googlegroups.com...
> >> >> >
> >> >> > Hi All,
> >> >> > After googling, I understand that exporting mailbox to .pst file can
> >> >> > be achieved through NameSpace functions and CopyTo method Is there
> >> >> > any
> >> >> > methods equivalent to NameSpace AddStore?. I doesn't want to include
> >> >> > MFC in project.
> >> >> >
> >> >> > Regards,
> >> >> > Sridhar D
> >> >> > duraisridhar[ at ]gmail.com wrote:
> >> >> >> Hi All,
> >> >> >>
> >> >> >> I am looking for a way to backup individual mail box of our
> >> >> >> Exchange
> >> >> >> Server 2003.I want to convert my individual mail box to a file and
> >> >> >> backup it. Can any help me with what MAPI methods i can achive
> >> >> >> this(though MAPI is not designed for backup). Should I read each
> >> >> >> mail
> >> >> >> of mail box and write it to a file ?.
> >> >> >>
> >> >> >> Any help on this will be greatly apppreciated.
> >> >> >>
> >> >> >> Regards,
> >> >> >> Sridhar D
> >> >> >
> >> >
> >

Re: Converting individual mailbox to a file using MAPI
duraisridhar[ at ]gmail.com 24.08.2006 07:04:09
Hi ,
CopyFolder fails for set of Folders likely Notes, Outbox, Sent Items,
Tasks and special folders created by user.
I couldn't infer anything form the error "MAPI_W_PARTIAL_COMPLETION",
I receive.
Is anything i'm missing?.

Regards,
Sridhar D

duraisridhar[ at ]gmail.com wrote:
[Quoted Text]
> Hi Dmitry ,
>
> It worked like a charm . Thanks for your quick responses.
>
> Regards,
> Sridhar D
>
> Dmitry Streblechenko wrote:
> > Use IMAPIFolder::CopyFolder/CopyMessages methods.
> >
> > Dmitry Streblechenko (MVP)
> > http://www.dimastr.com/
> > OutlookSpy - Outlook, CDO
> > and MAPI Developer Tool
> >
> > <duraisridhar[ at ]gmail.com> wrote in message
> > news:1156170096.834397.17880[ at ]m73g2000cwd.googlegroups.com...
> > > Hi,
> > > Thanks for your suggestions. I tried copying individual mailbox to
> > > newly created folder, but CopyTo call failed with error
> > > MAPI_E_NOT_FOUND. Both the store opened with MAPI_BEST_ACCESS and
> > > lpInterface value NULL(default) while opening. The lpInterface value in
> > > CopyTo method is IID_IMsgStore.Here is what I'm passing to CopyTo
> > > method.
> > >
> > > HRESULT copyResult = oldlpMDB->CopyTo(0, NULL, NULL, 0, NULL,
> > > (LPCIID)&IID_IMsgStore,
> > > newLPMDB,
> > > 0,
> > > &lpspropProblemArray);
> > >
> > > Can any one guess where I'm going wrong.
> > > Thanks in Advance,
> > >
> > > Thanks & Regards,
> > > Sridhar D
> > >
> > > Dmitry Streblechenko wrote:
> > >> Open the PST store you just added (IMsgStore), then copy the
> > >> messages/folder
> > >> from the exchange store to the newly added PST store.
> > >>
> > >> Dmitry Streblechenko (MVP)
> > >> http://www.dimastr.com/
> > >> OutlookSpy - Outlook, CDO
> > >> and MAPI Developer Tool
> > >>
> > >> <duraisridhar[ at ]gmail.com> wrote in message
> > >> news:1155996777.193974.82550[ at ]p79g2000cwp.googlegroups.com...
> > >> > Hi Dmitry ,
> > >> > Thanks for your input. How should I copy my Mail box after
> > >> > configuring the MSUPST MS service . Any MAPI methods to accompilish my
> > >> > primary goal of copying mail box to .pst file while using the "MSUPST
> > >> > MS" service.
> > >> >
> > >> > Thanks for your time,
> > >> > Regards,
> > >> > Sridhar D
> > >> >
> > >> > Dmitry Streblechenko wrote:
> > >> >> First of all, NameSpace AddStore has absolutely nothing to with MFC -
> > >> >> it
> > >> >> is
> > >> >> an Outlook Object Model method, which can be called with or without
> > >> >> MFC.
> > >> >> If you don't want to use OOM but prefer Extended MAPI, you will need
> > >> >> to
> > >> >> add
> > >> >> and configure the "MSPST MS" service (or "MSUPST MS" in case of
> > >> >> Unicode
> > >> >> PST
> > >> >> in Outlook 2003) - there were numerous posts dealing with this subject
> > >> >> in
> > >> >> this newsgroup, e.g. see
> > >> >> http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/cd68e7e9d5ab93fd/2b771b3730022d77?tvc=2&q=streblechenko+mspst+ms&hl=en#2b771b3730022d77
> > >> >>
> > >> >> Dmitry Streblechenko (MVP)
> > >> >> http://www.dimastr.com/
> > >> >> OutlookSpy - Outlook, CDO
> > >> >> and MAPI Developer Tool
> > >> >>
> > >> >> <duraisridhar[ at ]gmail.com> wrote in message
> > >> >> news:1155902741.792664.206840[ at ]h48g2000cwc.googlegroups.com...
> > >> >> >
> > >> >> > Hi All,
> > >> >> > After googling, I understand that exporting mailbox to .pst file can
> > >> >> > be achieved through NameSpace functions and CopyTo method Is there
> > >> >> > any
> > >> >> > methods equivalent to NameSpace AddStore?. I doesn't want to include
> > >> >> > MFC in project.
> > >> >> >
> > >> >> > Regards,
> > >> >> > Sridhar D
> > >> >> > duraisridhar[ at ]gmail.com wrote:
> > >> >> >> Hi All,
> > >> >> >>
> > >> >> >> I am looking for a way to backup individual mail box of our
> > >> >> >> Exchange
> > >> >> >> Server 2003.I want to convert my individual mail box to a file and
> > >> >> >> backup it. Can any help me with what MAPI methods i can achive
> > >> >> >> this(though MAPI is not designed for backup). Should I read each
> > >> >> >> mail
> > >> >> >> of mail box and write it to a file ?.
> > >> >> >>
> > >> >> >> Any help on this will be greatly apppreciated.
> > >> >> >>
> > >> >> >> Regards,
> > >> >> >> Sridhar D
> > >> >> >
> > >> >
> > >

Re: Converting individual mailbox to a file using MAPI
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 24.08.2006 16:50:11
You might be better off explcitly creating new destination folders
recursively and copying messages one at a time.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

<duraisridhar[ at ]gmail.com> wrote in message
news:1156403048.958334.195100[ at ]m73g2000cwd.googlegroups.com...
[Quoted Text]
> Hi ,
> CopyFolder fails for set of Folders likely Notes, Outbox, Sent Items,
> Tasks and special folders created by user.
> I couldn't infer anything form the error "MAPI_W_PARTIAL_COMPLETION",
> I receive.
> Is anything i'm missing?.
>
> Regards,
> Sridhar D
>
> duraisridhar[ at ]gmail.com wrote:
>> Hi Dmitry ,
>>
>> It worked like a charm . Thanks for your quick responses.
>>
>> Regards,
>> Sridhar D
>>
>> Dmitry Streblechenko wrote:
>> > Use IMAPIFolder::CopyFolder/CopyMessages methods.
>> >
>> > Dmitry Streblechenko (MVP)
>> > http://www.dimastr.com/
>> > OutlookSpy - Outlook, CDO
>> > and MAPI Developer Tool
>> >
>> > <duraisridhar[ at ]gmail.com> wrote in message
>> > news:1156170096.834397.17880[ at ]m73g2000cwd.googlegroups.com...
>> > > Hi,
>> > > Thanks for your suggestions. I tried copying individual mailbox to
>> > > newly created folder, but CopyTo call failed with error
>> > > MAPI_E_NOT_FOUND. Both the store opened with MAPI_BEST_ACCESS and
>> > > lpInterface value NULL(default) while opening. The lpInterface value
>> > > in
>> > > CopyTo method is IID_IMsgStore.Here is what I'm passing to CopyTo
>> > > method.
>> > >
>> > > HRESULT copyResult = oldlpMDB->CopyTo(0, NULL, NULL, 0, NULL,
>> > > (LPCIID)&IID_IMsgStore,
>> > > newLPMDB,
>> > > 0,
>> > > &lpspropProblemArray);
>> > >
>> > > Can any one guess where I'm going wrong.
>> > > Thanks in Advance,
>> > >
>> > > Thanks & Regards,
>> > > Sridhar D
>> > >
>> > > Dmitry Streblechenko wrote:
>> > >> Open the PST store you just added (IMsgStore), then copy the
>> > >> messages/folder
>> > >> from the exchange store to the newly added PST store.
>> > >>
>> > >> Dmitry Streblechenko (MVP)
>> > >> http://www.dimastr.com/
>> > >> OutlookSpy - Outlook, CDO
>> > >> and MAPI Developer Tool
>> > >>
>> > >> <duraisridhar[ at ]gmail.com> wrote in message
>> > >> news:1155996777.193974.82550[ at ]p79g2000cwp.googlegroups.com...
>> > >> > Hi Dmitry ,
>> > >> > Thanks for your input. How should I copy my Mail box after
>> > >> > configuring the MSUPST MS service . Any MAPI methods to
>> > >> > accompilish my
>> > >> > primary goal of copying mail box to .pst file while using the
>> > >> > "MSUPST
>> > >> > MS" service.
>> > >> >
>> > >> > Thanks for your time,
>> > >> > Regards,
>> > >> > Sridhar D
>> > >> >
>> > >> > Dmitry Streblechenko wrote:
>> > >> >> First of all, NameSpace AddStore has absolutely nothing to with
>> > >> >> MFC -
>> > >> >> it
>> > >> >> is
>> > >> >> an Outlook Object Model method, which can be called with or
>> > >> >> without
>> > >> >> MFC.
>> > >> >> If you don't want to use OOM but prefer Extended MAPI, you will
>> > >> >> need
>> > >> >> to
>> > >> >> add
>> > >> >> and configure the "MSPST MS" service (or "MSUPST MS" in case of
>> > >> >> Unicode
>> > >> >> PST
>> > >> >> in Outlook 2003) - there were numerous posts dealing with this
>> > >> >> subject
>> > >> >> in
>> > >> >> this newsgroup, e.g. see
>> > >> >> http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/cd68e7e9d5ab93fd/2b771b3730022d77?tvc=2&q=streblechenko+mspst+ms&hl=en#2b771b3730022d77
>> > >> >>
>> > >> >> Dmitry Streblechenko (MVP)
>> > >> >> http://www.dimastr.com/
>> > >> >> OutlookSpy - Outlook, CDO
>> > >> >> and MAPI Developer Tool
>> > >> >>
>> > >> >> <duraisridhar[ at ]gmail.com> wrote in message
>> > >> >> news:1155902741.792664.206840[ at ]h48g2000cwc.googlegroups.com...
>> > >> >> >
>> > >> >> > Hi All,
>> > >> >> > After googling, I understand that exporting mailbox to .pst
>> > >> >> > file can
>> > >> >> > be achieved through NameSpace functions and CopyTo method Is
>> > >> >> > there
>> > >> >> > any
>> > >> >> > methods equivalent to NameSpace AddStore?. I doesn't want to
>> > >> >> > include
>> > >> >> > MFC in project.
>> > >> >> >
>> > >> >> > Regards,
>> > >> >> > Sridhar D
>> > >> >> > duraisridhar[ at ]gmail.com wrote:
>> > >> >> >> Hi All,
>> > >> >> >>
>> > >> >> >> I am looking for a way to backup individual mail box of our
>> > >> >> >> Exchange
>> > >> >> >> Server 2003.I want to convert my individual mail box to a file
>> > >> >> >> and
>> > >> >> >> backup it. Can any help me with what MAPI methods i can achive
>> > >> >> >> this(though MAPI is not designed for backup). Should I read
>> > >> >> >> each
>> > >> >> >> mail
>> > >> >> >> of mail box and write it to a file ?.
>> > >> >> >>
>> > >> >> >> Any help on this will be greatly apppreciated.
>> > >> >> >>
>> > >> >> >> Regards,
>> > >> >> >> Sridhar D
>> > >> >> >
>> > >> >
>> > >
>


Re: Converting individual mailbox to a file using MAPI
duraisridhar[ at ]gmail.com 25.08.2006 08:45:17
Hi Dmitry,
Thanks for your inputs. Few more queries on copying messages.

1) Would Copying messages level affect perfomance of the my
application and the Exchange Server I had logged in ?.

2) Should I Copy individual messages of each folder or just delete
the folder with error and proceed copying inidividual messages of
particular problematic folder ?. I'm aware that problem might arise at
the last stage of Copying Folder and hence Copying messages again from
the starting will surely cost me.

Can I find what made problem ("MAPI_W_PARTIAL_COMPLETION" error ) on
IMAPIFolder::CopyFolder call using extended erors.

Thanks again for your suggestions.

Regards,
Sridhar D

Dmitry Streblechenko wrote:
[Quoted Text]
> You might be better off explcitly creating new destination folders
> recursively and copying messages one at a time.
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> <duraisridhar[ at ]gmail.com> wrote in message
> news:1156403048.958334.195100[ at ]m73g2000cwd.googlegroups.com...
> > Hi ,
> > CopyFolder fails for set of Folders likely Notes, Outbox, Sent Items,
> > Tasks and special folders created by user.
> > I couldn't infer anything form the error "MAPI_W_PARTIAL_COMPLETION",
> > I receive.
> > Is anything i'm missing?.
> >
> > Regards,
> > Sridhar D
> >
> > duraisridhar[ at ]gmail.com wrote:
> >> Hi Dmitry ,
> >>
> >> It worked like a charm . Thanks for your quick responses.
> >>
> >> Regards,
> >> Sridhar D
> >>
> >> Dmitry Streblechenko wrote:
> >> > Use IMAPIFolder::CopyFolder/CopyMessages methods.
> >> >
> >> > Dmitry Streblechenko (MVP)
> >> > http://www.dimastr.com/
> >> > OutlookSpy - Outlook, CDO
> >> > and MAPI Developer Tool
> >> >
> >> > <duraisridhar[ at ]gmail.com> wrote in message
> >> > news:1156170096.834397.17880[ at ]m73g2000cwd.googlegroups.com...
> >> > > Hi,
> >> > > Thanks for your suggestions. I tried copying individual mailbox to
> >> > > newly created folder, but CopyTo call failed with error
> >> > > MAPI_E_NOT_FOUND. Both the store opened with MAPI_BEST_ACCESS and
> >> > > lpInterface value NULL(default) while opening. The lpInterface value
> >> > > in
> >> > > CopyTo method is IID_IMsgStore.Here is what I'm passing to CopyTo
> >> > > method.
> >> > >
> >> > > HRESULT copyResult = oldlpMDB->CopyTo(0, NULL, NULL, 0, NULL,
> >> > > (LPCIID)&IID_IMsgStore,
> >> > > newLPMDB,
> >> > > 0,
> >> > > &lpspropProblemArray);
> >> > >
> >> > > Can any one guess where I'm going wrong.
> >> > > Thanks in Advance,
> >> > >
> >> > > Thanks & Regards,
> >> > > Sridhar D
> >> > >
> >> > > Dmitry Streblechenko wrote:
> >> > >> Open the PST store you just added (IMsgStore), then copy the
> >> > >> messages/folder
> >> > >> from the exchange store to the newly added PST store.
> >> > >>
> >> > >> Dmitry Streblechenko (MVP)
> >> > >> http://www.dimastr.com/
> >> > >> OutlookSpy - Outlook, CDO
> >> > >> and MAPI Developer Tool
> >> > >>
> >> > >> <duraisridhar[ at ]gmail.com> wrote in message
> >> > >> news:1155996777.193974.82550[ at ]p79g2000cwp.googlegroups.com...
> >> > >> > Hi Dmitry ,
> >> > >> > Thanks for your input. How should I copy my Mail box after
> >> > >> > configuring the MSUPST MS service . Any MAPI methods to
> >> > >> > accompilish my
> >> > >> > primary goal of copying mail box to .pst file while using the
> >> > >> > "MSUPST
> >> > >> > MS" service.
> >> > >> >
> >> > >> > Thanks for your time,
> >> > >> > Regards,
> >> > >> > Sridhar D
> >> > >> >
> >> > >> > Dmitry Streblechenko wrote:
> >> > >> >> First of all, NameSpace AddStore has absolutely nothing to with
> >> > >> >> MFC -
> >> > >> >> it
> >> > >> >> is
> >> > >> >> an Outlook Object Model method, which can be called with or
> >> > >> >> without
> >> > >> >> MFC.
> >> > >> >> If you don't want to use OOM but prefer Extended MAPI, you will
> >> > >> >> need
> >> > >> >> to
> >> > >> >> add
> >> > >> >> and configure the "MSPST MS" service (or "MSUPST MS" in case of
> >> > >> >> Unicode
> >> > >> >> PST
> >> > >> >> in Outlook 2003) - there were numerous posts dealing with this
> >> > >> >> subject
> >> > >> >> in
> >> > >> >> this newsgroup, e.g. see
> >> > >> >> http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/cd68e7e9d5ab93fd/2b771b3730022d77?tvc=2&q=streblechenko+mspst+ms&hl=en#2b771b3730022d77
> >> > >> >>
> >> > >> >> Dmitry Streblechenko (MVP)
> >> > >> >> http://www.dimastr.com/
> >> > >> >> OutlookSpy - Outlook, CDO
> >> > >> >> and MAPI Developer Tool
> >> > >> >>
> >> > >> >> <duraisridhar[ at ]gmail.com> wrote in message
> >> > >> >> news:1155902741.792664.206840[ at ]h48g2000cwc.googlegroups.com...
> >> > >> >> >
> >> > >> >> > Hi All,
> >> > >> >> > After googling, I understand that exporting mailbox to .pst
> >> > >> >> > file can
> >> > >> >> > be achieved through NameSpace functions and CopyTo method Is
> >> > >> >> > there
> >> > >> >> > any
> >> > >> >> > methods equivalent to NameSpace AddStore?. I doesn't want to
> >> > >> >> > include
> >> > >> >> > MFC in project.
> >> > >> >> >
> >> > >> >> > Regards,
> >> > >> >> > Sridhar D
> >> > >> >> > duraisridhar[ at ]gmail.com wrote:
> >> > >> >> >> Hi All,
> >> > >> >> >>
> >> > >> >> >> I am looking for a way to backup individual mail box of our
> >> > >> >> >> Exchange
> >> > >> >> >> Server 2003.I want to convert my individual mail box to a file
> >> > >> >> >> and
> >> > >> >> >> backup it. Can any help me with what MAPI methods i can achive
> >> > >> >> >> this(though MAPI is not designed for backup). Should I read
> >> > >> >> >> each
> >> > >> >> >> mail
> >> > >> >> >> of mail box and write it to a file ?.
> >> > >> >> >>
> >> > >> >> >> Any help on this will be greatly apppreciated.
> >> > >> >> >>
> >> > >> >> >> Regards,
> >> > >> >> >> Sridhar D
> >> > >> >> >
> >> > >> >
> >> > >
> >

Re: Converting individual mailbox to a file using MAPI
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 25.08.2006 17:21:19
1. Of course. Accessing Exchange server, no matter what you do, affects its
performance.
2. Why do you want to delete anything? I thought you were tryign to copy
messages and folders? If you copy one message at a time, it is as atomic as
it gets. If a particular message cannot be copied for some reason, it surely
does not affect any other message.

MAPI_W_PARTIAL_COMPLETION means "some things were successful, but some
failed". Which can means "1 out of 1,000,000 messages failed". Or it can
mean "999,999 out of 1,000,000 messages failed".

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

<duraisridhar[ at ]gmail.com> wrote in message
news:1156495517.922246.228160[ at ]i42g2000cwa.googlegroups.com...
[Quoted Text]
> Hi Dmitry,
> Thanks for your inputs. Few more queries on copying messages.
>
> 1) Would Copying messages level affect perfomance of the my
> application and the Exchange Server I had logged in ?.
>
> 2) Should I Copy individual messages of each folder or just delete
> the folder with error and proceed copying inidividual messages of
> particular problematic folder ?. I'm aware that problem might arise at
> the last stage of Copying Folder and hence Copying messages again from
> the starting will surely cost me.
>
> Can I find what made problem ("MAPI_W_PARTIAL_COMPLETION" error ) on
> IMAPIFolder::CopyFolder call using extended erors.
>
> Thanks again for your suggestions.
>
> Regards,
> Sridhar D
>
> Dmitry Streblechenko wrote:
>> You might be better off explcitly creating new destination folders
>> recursively and copying messages one at a time.
>>
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy - Outlook, CDO
>> and MAPI Developer Tool
>>
>> <duraisridhar[ at ]gmail.com> wrote in message
>> news:1156403048.958334.195100[ at ]m73g2000cwd.googlegroups.com...
>> > Hi ,
>> > CopyFolder fails for set of Folders likely Notes, Outbox, Sent Items,
>> > Tasks and special folders created by user.
>> > I couldn't infer anything form the error "MAPI_W_PARTIAL_COMPLETION",
>> > I receive.
>> > Is anything i'm missing?.
>> >
>> > Regards,
>> > Sridhar D
>> >
>> > duraisridhar[ at ]gmail.com wrote:
>> >> Hi Dmitry ,
>> >>
>> >> It worked like a charm . Thanks for your quick responses.
>> >>
>> >> Regards,
>> >> Sridhar D
>> >>
>> >> Dmitry Streblechenko wrote:
>> >> > Use IMAPIFolder::CopyFolder/CopyMessages methods.
>> >> >
>> >> > Dmitry Streblechenko (MVP)
>> >> > http://www.dimastr.com/
>> >> > OutlookSpy - Outlook, CDO
>> >> > and MAPI Developer Tool
>> >> >
>> >> > <duraisridhar[ at ]gmail.com> wrote in message
>> >> > news:1156170096.834397.17880[ at ]m73g2000cwd.googlegroups.com...
>> >> > > Hi,
>> >> > > Thanks for your suggestions. I tried copying individual mailbox
>> >> > > to
>> >> > > newly created folder, but CopyTo call failed with error
>> >> > > MAPI_E_NOT_FOUND. Both the store opened with MAPI_BEST_ACCESS and
>> >> > > lpInterface value NULL(default) while opening. The lpInterface
>> >> > > value
>> >> > > in
>> >> > > CopyTo method is IID_IMsgStore.Here is what I'm passing to CopyTo
>> >> > > method.
>> >> > >
>> >> > > HRESULT copyResult = oldlpMDB->CopyTo(0, NULL, NULL, 0, NULL,
>> >> > > (LPCIID)&IID_IMsgStore,
>> >> > > newLPMDB,
>> >> > > 0,
>> >> > > &lpspropProblemArray);
>> >> > >
>> >> > > Can any one guess where I'm going wrong.
>> >> > > Thanks in Advance,
>> >> > >
>> >> > > Thanks & Regards,
>> >> > > Sridhar D
>> >> > >
>> >> > > Dmitry Streblechenko wrote:
>> >> > >> Open the PST store you just added (IMsgStore), then copy the
>> >> > >> messages/folder
>> >> > >> from the exchange store to the newly added PST store.
>> >> > >>
>> >> > >> Dmitry Streblechenko (MVP)
>> >> > >> http://www.dimastr.com/
>> >> > >> OutlookSpy - Outlook, CDO
>> >> > >> and MAPI Developer Tool
>> >> > >>
>> >> > >> <duraisridhar[ at ]gmail.com> wrote in message
>> >> > >> news:1155996777.193974.82550[ at ]p79g2000cwp.googlegroups.com...
>> >> > >> > Hi Dmitry ,
>> >> > >> > Thanks for your input. How should I copy my Mail box after
>> >> > >> > configuring the MSUPST MS service . Any MAPI methods to
>> >> > >> > accompilish my
>> >> > >> > primary goal of copying mail box to .pst file while using the
>> >> > >> > "MSUPST
>> >> > >> > MS" service.
>> >> > >> >
>> >> > >> > Thanks for your time,
>> >> > >> > Regards,
>> >> > >> > Sridhar D
>> >> > >> >
>> >> > >> > Dmitry Streblechenko wrote:
>> >> > >> >> First of all, NameSpace AddStore has absolutely nothing to
>> >> > >> >> with
>> >> > >> >> MFC -
>> >> > >> >> it
>> >> > >> >> is
>> >> > >> >> an Outlook Object Model method, which can be called with or
>> >> > >> >> without
>> >> > >> >> MFC.
>> >> > >> >> If you don't want to use OOM but prefer Extended MAPI, you
>> >> > >> >> will
>> >> > >> >> need
>> >> > >> >> to
>> >> > >> >> add
>> >> > >> >> and configure the "MSPST MS" service (or "MSUPST MS" in case
>> >> > >> >> of
>> >> > >> >> Unicode
>> >> > >> >> PST
>> >> > >> >> in Outlook 2003) - there were numerous posts dealing with this
>> >> > >> >> subject
>> >> > >> >> in
>> >> > >> >> this newsgroup, e.g. see
>> >> > >> >> http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/cd68e7e9d5ab93fd/2b771b3730022d77?tvc=2&q=streblechenko+mspst+ms&hl=en#2b771b3730022d77
>> >> > >> >>
>> >> > >> >> Dmitry Streblechenko (MVP)
>> >> > >> >> http://www.dimastr.com/
>> >> > >> >> OutlookSpy - Outlook, CDO
>> >> > >> >> and MAPI Developer Tool
>> >> > >> >>
>> >> > >> >> <duraisridhar[ at ]gmail.com> wrote in message
>> >> > >> >> news:1155902741.792664.206840[ at ]h48g2000cwc.googlegroups.com...
>> >> > >> >> >
>> >> > >> >> > Hi All,
>> >> > >> >> > After googling, I understand that exporting mailbox to .pst
>> >> > >> >> > file can
>> >> > >> >> > be achieved through NameSpace functions and CopyTo method
>> >> > >> >> > Is
>> >> > >> >> > there
>> >> > >> >> > any
>> >> > >> >> > methods equivalent to NameSpace AddStore?. I doesn't want to
>> >> > >> >> > include
>> >> > >> >> > MFC in project.
>> >> > >> >> >
>> >> > >> >> > Regards,
>> >> > >> >> > Sridhar D
>> >> > >> >> > duraisridhar[ at ]gmail.com wrote:
>> >> > >> >> >> Hi All,
>> >> > >> >> >>
>> >> > >> >> >> I am looking for a way to backup individual mail box of
>> >> > >> >> >> our
>> >> > >> >> >> Exchange
>> >> > >> >> >> Server 2003.I want to convert my individual mail box to a
>> >> > >> >> >> file
>> >> > >> >> >> and
>> >> > >> >> >> backup it. Can any help me with what MAPI methods i can
>> >> > >> >> >> achive
>> >> > >> >> >> this(though MAPI is not designed for backup). Should I read
>> >> > >> >> >> each
>> >> > >> >> >> mail
>> >> > >> >> >> of mail box and write it to a file ?.
>> >> > >> >> >>
>> >> > >> >> >> Any help on this will be greatly apppreciated.
>> >> > >> >> >>
>> >> > >> >> >> Regards,
>> >> > >> >> >> Sridhar D
>> >> > >> >> >
>> >> > >> >
>> >> > >
>> >
>


Re: Converting individual mailbox to a file using MAPI
Jason Ivarone 29.08.2006 17:56:02
Hello,

I'm trying to programmatically determine the "version" of very many PSTs.
BTW, I'm using OOM via Perl's OLE module.
First, I open each PST using:
my $PST = $namespace->AddStore("c:\path\to\this.pst");

Which works fine. However, I haven't been able to discover a way to
determine each PST's "version" (pre-/post-2003).

Can someone point me in the right direction (or to the right object)?

Thanks.

"Dmitry Streblechenko" wrote:

[Quoted Text]
> 1. Of course. Accessing Exchange server, no matter what you do, affects its
> performance.
> 2. Why do you want to delete anything? I thought you were tryign to copy
> messages and folders? If you copy one message at a time, it is as atomic as
> it gets. If a particular message cannot be copied for some reason, it surely
> does not affect any other message.
>
> MAPI_W_PARTIAL_COMPLETION means "some things were successful, but some
> failed". Which can means "1 out of 1,000,000 messages failed". Or it can
> mean "999,999 out of 1,000,000 messages failed".
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> <duraisridhar[ at ]gmail.com> wrote in message
> news:1156495517.922246.228160[ at ]i42g2000cwa.googlegroups.com...
> > Hi Dmitry,
> > Thanks for your inputs. Few more queries on copying messages.
> >
> > 1) Would Copying messages level affect perfomance of the my
> > application and the Exchange Server I had logged in ?.
> >
> > 2) Should I Copy individual messages of each folder or just delete
> > the folder with error and proceed copying inidividual messages of
> > particular problematic folder ?. I'm aware that problem might arise at
> > the last stage of Copying Folder and hence Copying messages again from
> > the starting will surely cost me.
> >
> > Can I find what made problem ("MAPI_W_PARTIAL_COMPLETION" error ) on
> > IMAPIFolder::CopyFolder call using extended erors.
> >
> > Thanks again for your suggestions.
> >
> > Regards,
> > Sridhar D
> >
> > Dmitry Streblechenko wrote:
> >> You might be better off explcitly creating new destination folders
> >> recursively and copying messages one at a time.
> >>
> >> Dmitry Streblechenko (MVP)
> >> http://www.dimastr.com/
> >> OutlookSpy - Outlook, CDO
> >> and MAPI Developer Tool
> >>
> >> <duraisridhar[ at ]gmail.com> wrote in message
> >> news:1156403048.958334.195100[ at ]m73g2000cwd.googlegroups.com...
> >> > Hi ,
> >> > CopyFolder fails for set of Folders likely Notes, Outbox, Sent Items,
> >> > Tasks and special folders created by user.
> >> > I couldn't infer anything form the error "MAPI_W_PARTIAL_COMPLETION",
> >> > I receive.
> >> > Is anything i'm missing?.
> >> >
> >> > Regards,
> >> > Sridhar D
> >> >
> >> > duraisridhar[ at ]gmail.com wrote:
> >> >> Hi Dmitry ,
> >> >>
> >> >> It worked like a charm . Thanks for your quick responses.
> >> >>
> >> >> Regards,
> >> >> Sridhar D
> >> >>
> >> >> Dmitry Streblechenko wrote:
> >> >> > Use IMAPIFolder::CopyFolder/CopyMessages methods.
> >> >> >
> >> >> > Dmitry Streblechenko (MVP)
> >> >> > http://www.dimastr.com/
> >> >> > OutlookSpy - Outlook, CDO
> >> >> > and MAPI Developer Tool
> >> >> >
> >> >> > <duraisridhar[ at ]gmail.com> wrote in message
> >> >> > news:1156170096.834397.17880[ at ]m73g2000cwd.googlegroups.com...
> >> >> > > Hi,
> >> >> > > Thanks for your suggestions. I tried copying individual mailbox
> >> >> > > to
> >> >> > > newly created folder, but CopyTo call failed with error
> >> >> > > MAPI_E_NOT_FOUND. Both the store opened with MAPI_BEST_ACCESS and
> >> >> > > lpInterface value NULL(default) while opening. The lpInterface
> >> >> > > value
> >> >> > > in
> >> >> > > CopyTo method is IID_IMsgStore.Here is what I'm passing to CopyTo
> >> >> > > method.
> >> >> > >
> >> >> > > HRESULT copyResult = oldlpMDB->CopyTo(0, NULL, NULL, 0, NULL,
> >> >> > > (LPCIID)&IID_IMsgStore,
> >> >> > > newLPMDB,
> >> >> > > 0,
> >> >> > > &lpspropProblemArray);
> >> >> > >
> >> >> > > Can any one guess where I'm going wrong.
> >> >> > > Thanks in Advance,
> >> >> > >
> >> >> > > Thanks & Regards,
> >> >> > > Sridhar D
> >> >> > >
> >> >> > > Dmitry Streblechenko wrote:
> >> >> > >> Open the PST store you just added (IMsgStore), then copy the
> >> >> > >> messages/folder
> >> >> > >> from the exchange store to the newly added PST store.
> >> >> > >>
> >> >> > >> Dmitry Streblechenko (MVP)
> >> >> > >> http://www.dimastr.com/
> >> >> > >> OutlookSpy - Outlook, CDO
> >> >> > >> and MAPI Developer Tool
> >> >> > >>
> >> >> > >> <duraisridhar[ at ]gmail.com> wrote in message
> >> >> > >> news:1155996777.193974.82550[ at ]p79g2000cwp.googlegroups.com...
> >> >> > >> > Hi Dmitry ,
> >> >> > >> > Thanks for your input. How should I copy my Mail box after
> >> >> > >> > configuring the MSUPST MS service . Any MAPI methods to
> >> >> > >> > accompilish my
> >> >> > >> > primary goal of copying mail box to .pst file while using the
> >> >> > >> > "MSUPST
> >> >> > >> > MS" service.
> >> >> > >> >
> >> >> > >> > Thanks for your time,
> >> >> > >> > Regards,
> >> >> > >> > Sridhar D
> >> >> > >> >
> >> >> > >> > Dmitry Streblechenko wrote:
> >> >> > >> >> First of all, NameSpace AddStore has absolutely nothing to
> >> >> > >> >> with
> >> >> > >> >> MFC -
> >> >> > >> >> it
> >> >> > >> >> is
> >> >> > >> >> an Outlook Object Model method, which can be called with or
> >> >> > >> >> without
> >> >> > >> >> MFC.
> >> >> > >> >> If you don't want to use OOM but prefer Extended MAPI, you
> >> >> > >> >> will
> >> >> > >> >> need
> >> >> > >> >> to
> >> >> > >> >> add
> >> >> > >> >> and configure the "MSPST MS" service (or "MSUPST MS" in case
> >> >> > >> >> of
> >> >> > >> >> Unicode
> >> >> > >> >> PST
> >> >> > >> >> in Outlook 2003) - there were numerous posts dealing with this
> >> >> > >> >> subject
> >> >> > >> >> in
> >> >> > >> >> this newsgroup, e.g. see
> >> >> > >> >> http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/cd68e7e9d5ab93fd/2b771b3730022d77?tvc=2&q=streblechenko+mspst+ms&hl=en#2b771b3730022d77
> >> >> > >> >>
> >> >> > >> >> Dmitry Streblechenko (MVP)
> >> >> > >> >> http://www.dimastr.com/
> >> >> > >> >> OutlookSpy - Outlook, CDO
> >> >> > >> >> and MAPI Developer Tool
> >> >> > >> >>
> >> >> > >> >> <duraisridhar[ at ]gmail.com> wrote in message
> >> >> > >> >> news:1155902741.792664.206840[ at ]h48g2000cwc.googlegroups.com...
> >> >> > >> >> >
> >> >> > >> >> > Hi All,
> >> >> > >> >> > After googling, I understand that exporting mailbox to .pst
> >> >> > >> >> > file can
> >> >> > >> >> > be achieved through NameSpace functions and CopyTo method
> >> >> > >> >> > Is
> >> >> > >> >> > there
> >> >> > >> >> > any
> >> >> > >> >> > methods equivalent to NameSpace AddStore?. I doesn't want to
> >> >> > >> >> > include
> >> >> > >> >> > MFC in project.
> >> >> > >> >> >
> >> >> > >> >> > Regards,
> >> >> > >> >> > Sridhar D
> >> >> > >> >> > duraisridhar[ at ]gmail.com wrote:
> >> >> > >> >> >> Hi All,
> >> >> > >> >> >>
> >> >> > >> >> >> I am looking for a way to backup individual mail box of
> >> >> > >> >> >> our
> >> >> > >> >> >> Exchange
> >> >> > >> >> >> Server 2003.I want to convert my individual mail box to a
> >> >> > >> >> >> file
> >> >> > >> >> >> and
> >> >> > >> >> >> backup it. Can any help me with what MAPI methods i can
> >> >> > >> >> >> achive
> >> >> > >> >> >> this(though MAPI is not designed for backup). Should I read
> >> >> > >> >> >> each
> >> >> > >> >> >> mail
> >> >> > >> >> >> of mail box and write it to a file ?.
> >> >> > >> >> >>
> >> >> > >> >> >> Any help on this will be greatly apppreciated.
> >> >> > >> >> >>
> >> >> > >> >> >> Regards,
> >> >> > >> >> >> Sridhar D
> >> >> > >> >> >
> >> >> > >> >
> >> >> > >
> >> >
> >
>
>
>
Re: Converting individual mailbox to a file using MAPI
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 29.08.2006 18:30:24
First of all, please do not hijack an existing thread, create a new one,
especially if your question has nothing to do with the existing thread.
Secondly, AFAIK the only way to distinguish between the ANSI and Unicode
PSTs is to read the PR_STORE_SUPPORT_MASK property from the mesage store
(IMsgStore) and check if the STORE_UNICODE_OK bit is present.
See http://support.microsoft.com/kb/884671 and
http://support.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.outlook.program_vba&tid=b5ade106-2403-41e9-8825-302c4cfa803b&p=1

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Jason Ivarone" <Jason Ivarone[ at ]discussions.microsoft.com> wrote in message
news:4CB79424-60A6-4199-B760-FCD76E28D27D[ at ]microsoft.com...
[Quoted Text]
> Hello,
>
> I'm trying to programmatically determine the "version" of very many PSTs.
> BTW, I'm using OOM via Perl's OLE module.
> First, I open each PST using:
> my $PST = $namespace->AddStore("c:\path\to\this.pst");
>
> Which works fine. However, I haven't been able to discover a way to
> determine each PST's "version" (pre-/post-2003).
>
> Can someone point me in the right direction (or to the right object)?
>
> Thanks.
>
> "Dmitry Streblechenko" wrote:
>
>> 1. Of course. Accessing Exchange server, no matter what you do, affects
>> its
>> performance.
>> 2. Why do you want to delete anything? I thought you were tryign to copy
>> messages and folders? If you copy one message at a time, it is as atomic
>> as
>> it gets. If a particular message cannot be copied for some reason, it
>> surely
>> does not affect any other message.
>>
>> MAPI_W_PARTIAL_COMPLETION means "some things were successful, but some
>> failed". Which can means "1 out of 1,000,000 messages failed". Or it can
>> mean "999,999 out of 1,000,000 messages failed".
>>
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy - Outlook, CDO
>> and MAPI Developer Tool
>>
>> <duraisridhar[ at ]gmail.com> wrote in message
>> news:1156495517.922246.228160[ at ]i42g2000cwa.googlegroups.com...
>> > Hi Dmitry,
>> > Thanks for your inputs. Few more queries on copying messages.
>> >
>> > 1) Would Copying messages level affect perfomance of the my
>> > application and the Exchange Server I had logged in ?.
>> >
>> > 2) Should I Copy individual messages of each folder or just delete
>> > the folder with error and proceed copying inidividual messages of
>> > particular problematic folder ?. I'm aware that problem might arise at
>> > the last stage of Copying Folder and hence Copying messages again from
>> > the starting will surely cost me.
>> >
>> > Can I find what made problem ("MAPI_W_PARTIAL_COMPLETION" error ) on
>> > IMAPIFolder::CopyFolder call using extended erors.
>> >
>> > Thanks again for your suggestions.
>> >
>> > Regards,
>> > Sridhar D
>> >
>> > Dmitry Streblechenko wrote:
>> >> You might be better off explcitly creating new destination folders
>> >> recursively and copying messages one at a time.
>> >>
>> >> Dmitry Streblechenko (MVP)
>> >> http://www.dimastr.com/
>> >> OutlookSpy - Outlook, CDO
>> >> and MAPI Developer Tool
>> >>
>> >> <duraisridhar[ at ]gmail.com> wrote in message
>> >> news:1156403048.958334.195100[ at ]m73g2000cwd.googlegroups.com...
>> >> > Hi ,
>> >> > CopyFolder fails for set of Folders likely Notes, Outbox, Sent
>> >> > Items,
>> >> > Tasks and special folders created by user.
>> >> > I couldn't infer anything form the error
>> >> > "MAPI_W_PARTIAL_COMPLETION",
>> >> > I receive.
>> >> > Is anything i'm missing?.
>> >> >
>> >> > Regards,
>> >> > Sridhar D
>> >> >
>> >> > duraisridhar[ at ]gmail.com wrote:
>> >> >> Hi Dmitry ,
>> >> >>
>> >> >> It worked like a charm . Thanks for your quick responses.
>> >> >>
>> >> >> Regards,
>> >> >> Sridhar D
>> >> >>
>> >> >> Dmitry Streblechenko wrote:
>> >> >> > Use IMAPIFolder::CopyFolder/CopyMessages methods.
>> >> >> >
>> >> >> > Dmitry Streblechenko (MVP)
>> >> >> > http://www.dimastr.com/
>> >> >> > OutlookSpy - Outlook, CDO
>> >> >> > and MAPI Developer Tool
>> >> >> >
>> >> >> > <duraisridhar[ at ]gmail.com> wrote in message
>> >> >> > news:1156170096.834397.17880[ at ]m73g2000cwd.googlegroups.com...
>> >> >> > > Hi,
>> >> >> > > Thanks for your suggestions. I tried copying individual
>> >> >> > > mailbox
>> >> >> > > to
>> >> >> > > newly created folder, but CopyTo call failed with error
>> >> >> > > MAPI_E_NOT_FOUND. Both the store opened with MAPI_BEST_ACCESS
>> >> >> > > and
>> >> >> > > lpInterface value NULL(default) while opening. The lpInterface
>> >> >> > > value
>> >> >> > > in
>> >> >> > > CopyTo method is IID_IMsgStore.Here is what I'm passing to
>> >> >> > > CopyTo
>> >> >> > > method.
>> >> >> > >
>> >> >> > > HRESULT copyResult = oldlpMDB->CopyTo(0, NULL, NULL, 0, NULL,
>> >> >> > > (LPCIID)&IID_IMsgStore,
>> >> >> > > newLPMDB,
>> >> >> > > 0,
>> >> >> > > &lpspropProblemArray);
>> >> >> > >
>> >> >> > > Can any one guess where I'm going wrong.
>> >> >> > > Thanks in Advance,
>> >> >> > >
>> >> >> > > Thanks & Regards,
>> >> >> > > Sridhar D
>> >> >> > >
>> >> >> > > Dmitry Streblechenko wrote:
>> >> >> > >> Open the PST store you just added (IMsgStore), then copy the
>> >> >> > >> messages/folder
>> >> >> > >> from the exchange store to the newly added PST store.
>> >> >> > >>
>> >> >> > >> Dmitry Streblechenko (MVP)
>> >> >> > >> http://www.dimastr.com/
>> >> >> > >> OutlookSpy - Outlook, CDO
>> >> >> > >> and MAPI Developer Tool
>> >> >> > >>
>> >> >> > >> <duraisridhar[ at ]gmail.com> wrote in message
>> >> >> > >> news:1155996777.193974.82550[ at ]p79g2000cwp.googlegroups.com...
>> >> >> > >> > Hi Dmitry ,
>> >> >> > >> > Thanks for your input. How should I copy my Mail box after
>> >> >> > >> > configuring the MSUPST MS service . Any MAPI methods to
>> >> >> > >> > accompilish my
>> >> >> > >> > primary goal of copying mail box to .pst file while using
>> >> >> > >> > the
>> >> >> > >> > "MSUPST
>> >> >> > >> > MS" service.
>> >> >> > >> >
>> >> >> > >> > Thanks for your time,
>> >> >> > >> > Regards,
>> >> >> > >> > Sridhar D
>> >> >> > >> >
>> >> >> > >> > Dmitry Streblechenko wrote:
>> >> >> > >> >> First of all, NameSpace AddStore has absolutely nothing to
>> >> >> > >> >> with
>> >> >> > >> >> MFC -
>> >> >> > >> >> it
>> >> >> > >> >> is
>> >> >> > >> >> an Outlook Object Model method, which can be called with or
>> >> >> > >> >> without
>> >> >> > >> >> MFC.
>> >> >> > >> >> If you don't want to use OOM but prefer Extended MAPI, you
>> >> >> > >> >> will
>> >> >> > >> >> need
>> >> >> > >> >> to
>> >> >> > >> >> add
>> >> >> > >> >> and configure the "MSPST MS" service (or "MSUPST MS" in
>> >> >> > >> >> case
>> >> >> > >> >> of
>> >> >> > >> >> Unicode
>> >> >> > >> >> PST
>> >> >> > >> >> in Outlook 2003) - there were numerous posts dealing with
>> >> >> > >> >> this
>> >> >> > >> >> subject
>> >> >> > >> >> in
>> >> >> > >> >> this newsgroup, e.g. see
>> >> >> > >> >> http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/cd68e7e9d5ab93fd/2b771b3730022d77?tvc=2&q=streblechenko+mspst+ms&hl=en#2b771b3730022d77
>> >> >> > >> >>
>> >> >> > >> >> Dmitry Streblechenko (MVP)
>> >> >> > >> >> http://www.dimastr.com/
>> >> >> > >> >> OutlookSpy - Outlook, CDO
>> >> >> > >> >> and MAPI Developer Tool
>> >> >> > >> >>
>> >> >> > >> >> <duraisridhar[ at ]gmail.com> wrote in message
>> >> >> > >> >> news:1155902741.792664.206840[ at ]h48g2000cwc.googlegroups.com...
>> >> >> > >> >> >
>> >> >> > >> >> > Hi All,
>> >> >> > >> >> > After googling, I understand that exporting mailbox to
>> >> >> > >> >> > .pst
>> >> >> > >> >> > file can
>> >> >> > >> >> > be achieved through NameSpace functions and CopyTo method
>> >> >> > >> >> > Is
>> >> >> > >> >> > there
>> >> >> > >> >> > any
>> >> >> > >> >> > methods equivalent to NameSpace AddStore?. I doesn't want
>> >> >> > >> >> > to
>> >> >> > >> >> > include
>> >> >> > >> >> > MFC in project.
>> >> >> > >> >> >
>> >> >> > >> >> > Regards,
>> >> >> > >> >> > Sridhar D
>> >> >> > >> >> > duraisridhar[ at ]gmail.com wrote:
>> >> >> > >> >> >> Hi All,
>> >> >> > >> >> >>
>> >> >> > >> >> >> I am looking for a way to backup individual mail box
>> >> >> > >> >> >> of
>> >> >> > >> >> >> our
>> >> >> > >> >> >> Exchange
>> >> >> > >> >> >> Server 2003.I want to convert my individual mail box to
>> >> >> > >> >> >> a
>> >> >> > >> >> >> file
>> >> >> > >> >> >> and
>> >> >> > >> >> >> backup it. Can any help me with what MAPI methods i can
>> >> >> > >> >> >> achive
>> >> >> > >> >> >> this(though MAPI is not designed for backup). Should I
>> >> >> > >> >> >> read
>> >> >> > >> >> >> each
>> >> >> > >> >> >> mail
>> >> >> > >> >> >> of mail box and write it to a file ?.
>> >> >> > >> >> >>
>> >> >> > >> >> >> Any help on this will be greatly apppreciated.
>> >> >> > >> >> >>
>> >> >> > >> >> >> Regards,
>> >> >> > >> >> >> Sridhar D
>> >> >> > >> >> >
>> >> >> > >> >
>> >> >> > >
>> >> >
>> >
>>
>>
>>


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net