Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Redemption SafeMailItem.SaveAs is slow

Geek News

Redemption SafeMailItem.SaveAs is slow
RonWalters[ at ]gmail.com 6/18/2007 6:13:44 PM
I have a licensed copy of Redemption, version 3.4.0.325, which I
distribute with another product. One of the functions of this product
is to save copies of various emails to the user's local drive in .msg
format. However, the SafeMailItem.SaveAs method is very slow.

I build a list of EntryIDs from a MAPI Table for the relevant emails
which I then use to obtain a reference to the MailItem. I assign the
MailItem to a Redemption SafeMailItem object, then call the SaveAs
method. After running various performance tests, the call to SaveAs is
without a doubt the slow step. It takes just under 1 second to save
each email, which doesn't sound like much, but it adds up very quickly
when processing batches of 50 or 100 emails. Some of this is limited
by the disk, I know, but it still seems much too slow. Any ideas? Is
this something that has been fixed in a more recent version of
Redemption? Is there a better way to bulk save emails that meet
certain criteria to disk?

Re: Redemption SafeMailItem.SaveAs is slow
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 6/18/2007 8:28:30 PM
Have you tried to use the latest version of Redemption?
How big are the messages? What kind of message store do they come from (PST,
Exchange online/cached, etc)?

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

<RonWalters[ at ]gmail.com> wrote in message
news:1182190424.215094.251460[ at ]d30g2000prg.googlegroups.com...
[Quoted Text]
>I have a licensed copy of Redemption, version 3.4.0.325, which I
> distribute with another product. One of the functions of this product
> is to save copies of various emails to the user's local drive in .msg
> format. However, the SafeMailItem.SaveAs method is very slow.
>
> I build a list of EntryIDs from a MAPI Table for the relevant emails
> which I then use to obtain a reference to the MailItem. I assign the
> MailItem to a Redemption SafeMailItem object, then call the SaveAs
> method. After running various performance tests, the call to SaveAs is
> without a doubt the slow step. It takes just under 1 second to save
> each email, which doesn't sound like much, but it adds up very quickly
> when processing batches of 50 or 100 emails. Some of this is limited
> by the disk, I know, but it still seems much too slow. Any ideas? Is
> this something that has been fixed in a more recent version of
> Redemption? Is there a better way to bulk save emails that meet
> certain criteria to disk?
>


Re: Redemption SafeMailItem.SaveAs is slow
RonWalters[ at ]gmail.com 6/19/2007 8:01:52 PM
On Jun 18, 4:28 pm, "Dmitry Streblechenko" <dmi...[ at ]dimastr.com> wrote:
[Quoted Text]
> Have you tried to use the latest version of Redemption?
> How big are the messages? What kind of message store do they come from (PST,
> Exchange online/cached, etc)?

1. I have tried the latest version of Redemption (4.4.0.674). No
appreciable change in performance.

2. Most of the final .msg files are 15-30kb , although about 10% are
between 100kb and 300kb.

3. The message store is a local .pst file. Exchange is not involved.

I can accept that this is an expensive operation, but not without
checking first. Do you experience better performance with the SaveAs
method than I've described? I would prefer to just export plain text,
but I have to preserve the message in its original format.

Thanks for your assistance,
Ron

Re: Redemption SafeMailItem.SaveAs is slow
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 6/19/2007 8:33:13 PM
What is your code? Is it a separate executable or a COM add-in?

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

<RonWalters[ at ]gmail.com> wrote in message
news:1182283312.088642.278640[ at ]p77g2000hsh.googlegroups.com...
[Quoted Text]
> On Jun 18, 4:28 pm, "Dmitry Streblechenko" <dmi...[ at ]dimastr.com> wrote:
>> Have you tried to use the latest version of Redemption?
>> How big are the messages? What kind of message store do they come from
>> (PST,
>> Exchange online/cached, etc)?
>
> 1. I have tried the latest version of Redemption (4.4.0.674). No
> appreciable change in performance.
>
> 2. Most of the final .msg files are 15-30kb , although about 10% are
> between 100kb and 300kb.
>
> 3. The message store is a local .pst file. Exchange is not involved.
>
> I can accept that this is an expensive operation, but not without
> checking first. Do you experience better performance with the SaveAs
> method than I've described? I would prefer to just export plain text,
> but I have to preserve the message in its original format.
>
> Thanks for your assistance,
> Ron
>


Re: Redemption SafeMailItem.SaveAs is slow
RonWalters[ at ]gmail.com 6/22/2007 1:35:41 PM
On Jun 19, 4:33 pm, "Dmitry Streblechenko" <dmi...[ at ]dimastr.com> wrote:
[Quoted Text]
> What is your code? Is it a separate executable or a COM add-in?
>
> Dmitry Streblechenko (MVP)http://www.dimastr.com/


It is a separate executable.

Re: Redemption SafeMailItem.SaveAs is slow
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 6/22/2007 4:59:47 PM
What is your code? What do you see if you use OOM instead of Redemption?

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

<RonWalters[ at ]gmail.com> wrote in message
news:1182519341.131408.152560[ at ]k79g2000hse.googlegroups.com...
[Quoted Text]
> On Jun 19, 4:33 pm, "Dmitry Streblechenko" <dmi...[ at ]dimastr.com> wrote:
>> What is your code? Is it a separate executable or a COM add-in?
>>
>> Dmitry Streblechenko (MVP)http://www.dimastr.com/
>
>
> It is a separate executable.
>


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