Thanks Pavel,
I was calling it incorrectly. I've been having memory issues and was hoping that grabbing a few at a time would help, but that doesn't seem to have done much good in the long run.
My project involves looking at the subject line of each email and if it is a bounced message, parse through the body to collect the bad email address and the actual error message to determine what kind of bounce it is. Once I have scanned an email, it is moved out of the inbox and into a subfolder. Sometimes our host will generate a list of bounces in a single email if they they come back within a certain time frame so it's important that I parse the actual subject and body.
I'm open to any suggestions that you might have. The current behavior of the script is that it will run smoothly for a few emails and then lock up as if it's stuck in an infinite loop. Yesterday I was able to sort through about 300 emails, but this morning I could only do 34. This behavior is also accompanied with a sudden memory spike that goes over 1G. There doesn't appear to be anything odd about the emails. I'm using .Net 4.5 and Outlook 2010.
Thanks!
~S
I was calling it incorrectly. I've been having memory issues and was hoping that grabbing a few at a time would help, but that doesn't seem to have done much good in the long run.
My project involves looking at the subject line of each email and if it is a bounced message, parse through the body to collect the bad email address and the actual error message to determine what kind of bounce it is. Once I have scanned an email, it is moved out of the inbox and into a subfolder. Sometimes our host will generate a list of bounces in a single email if they they come back within a certain time frame so it's important that I parse the actual subject and body.
I'm open to any suggestions that you might have. The current behavior of the script is that it will run smoothly for a few emails and then lock up as if it's stuck in an infinite loop. Yesterday I was able to sort through about 300 emails, but this morning I could only do 34. This behavior is also accompanied with a sudden memory spike that goes over 1G. There doesn't appear to be anything odd about the emails. I'm using .Net 4.5 and Outlook 2010.
Thanks!
~S