A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Redemption SafeMailItem.SaveAs is slow



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 18th 07, 08:13 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 3
Default Redemption SafeMailItem.SaveAs is slow

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?

  #2  
Old June 18th 07, 10:28 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Redemption SafeMailItem.SaveAs is slow

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

wrote in message
oups.com...
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?



  #3  
Old June 19th 07, 10:01 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 3
Default Redemption SafeMailItem.SaveAs is slow

On Jun 18, 4:28 pm, "Dmitry Streblechenko" 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

  #4  
Old June 19th 07, 10:33 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Redemption SafeMailItem.SaveAs is slow

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

wrote in message
oups.com...
On Jun 18, 4:28 pm, "Dmitry Streblechenko" 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



  #5  
Old June 22nd 07, 03:35 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 3
Default Redemption SafeMailItem.SaveAs is slow

On Jun 19, 4:33 pm, "Dmitry Streblechenko" 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.

  #6  
Old June 22nd 07, 06:59 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Redemption SafeMailItem.SaveAs is slow

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

wrote in message
oups.com...
On Jun 19, 4:33 pm, "Dmitry Streblechenko" 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.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redemption's SafeMailItem.SaveAs method yields empty files Alexander Bub Outlook and VBA 4 August 9th 06 12:29 PM
Changing the RFC822 header of a SafeMailItem using Redemption FLudewig Outlook and VBA 1 July 5th 06 04:21 PM
Catastrophic Failure while accessing Redemption.SafeMailItem.To and Recipients jisha Outlook and VBA 1 June 30th 06 06:48 PM
Outlook freezes on Redemption SaveAs [email protected] Add-ins for Outlook 5 April 28th 06 12:46 AM
Outlook freezes on Redemption SaveAs [email protected] Add-ins for Outlook 0 April 27th 06 05:30 PM


All times are GMT +1. The time now is 11:36 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.