Copying a pst file using MAPI

Copying a pst file using MAPI

Post by tanutat » Fri, 03 Sep 2004 14:16:28


Hi All !

I am using VC++ ,ExMapi and Outlook 2000/02/03.

I have to programmatically create a copy of Outlook .pst file
using Ex-mapi.

I found out that after performing the copy , the sizes of the original
and its copy differ a lot.For example, if the original pst size is
300 MB, its copy is around 400MB

And also the difference in sizes of the original and its copy seem to
increase if the original is larger in size.

Why is this happenng ?How can i overcoem this problem?

Thanx in advance !

Regards
TT
 
 
 

Copying a pst file using MAPI

Post by Jaso » Fri, 03 Sep 2004 22:19:26


This is similar to what happens when you "compress" a pst file.
When you delete something from a pst file it does not always
get deleted. Delete a 100mb from a pst file and the size does
not go down.

Becuase you are coping "non-deleted" items your size will differ.
Try copy with a new fresh pst file that has only had items added
to it.

Also I don't know everything about MAPI. The above is just
a guess.