Re: Removing attachments from a PST file & compacting
- From: "Dmitry Streblechenko" <dmitry@xxxxxxxxxxx>
- Date: Tue, 3 Oct 2006 09:54:44 -0700
No, there is publicly available API to compact/encrypt/etc PST files.
You can of course hack the PST file format, but prepare to fix your code
every time a new or a service pack of Outlook comes out.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"pete" <raidtab@xxxxxxxxx> wrote in message
news:1159869529.324260.211050@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Dmitry, thanks for your response. I was using MAPI_BEST_ACCESS for
accessing the folder, but since replacing it with MAPI_MODIFY it works,
thanks!
Do you have any thoughts on my second problem? I have considered just
modifying the PST file myself and using my own compacting routine, but
i do not know how difficult this will be. From my research I have
discovered that outlook 2003 by default uses "compressible encryption"
which is apparently a simple character replacement cipher; but i could
not find any more information on that. I assume Microsoft has not made
it easy to get past this encryption - do you know how Outlook decrypts
this? Or is there just simply absolutely no-way of programatically
compacting PST files?
Dmitry Streblechenko wrote:
Did you open the parent store with the write access?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"pete" <raidtab@xxxxxxxxx> wrote in message
news:1159434841.454863.227190@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi
I am currently writing a managed C++ application using extended MAPI to
access a PST file. When I call DeleteAttach() on the message i wish to
delete an attachment from, it returns an access denied error. This
works when I connect to an Exchange message store instead of a PST file
- is there something I am doing wrong, or is this behaviour by design?
I am using MAPI_MODIFY for the permission argument to the OpenEntry()
method when opening the message.
Also, i need to be able to programmatically compact the PST file once i
have removed the attachments from it. I understand there is no way of
doing this through CDO or the outlook object model, so is it possible
to invoke the mailstore properties dialog so then i can send click
messages to the 'advanced' and 'compact now' buttons? If so, how?
.
- Follow-Ups:
- References:
- Prev by Date: Re: Removing attachments from a PST file & compacting
- Next by Date: Re: How to create a MAPI profile from a service?
- Previous by thread: Re: Removing attachments from a PST file & compacting
- Next by thread: Re: Removing attachments from a PST file & compacting
- Index(es):
Loading