| Author |
Message |
Israel Derdik
Guest
|
Posted:
Mon Dec 12, 2005 5:59 pm Post subject:
Saving Email to a DMS |
|
|
I'm trying to save all email sent to a single mailbox (potentially thousands
per day) to different folders in our Document Management System based on a
string found in the emails' subject and then deletes the email from the
mailbox. What would you guys recommend as the best way to do this?
Option 1: Should this be done with an event sink?
Option 2: Should this be done as a scheduled exe that reads the mailbox
every X minutes, parses the subject and writes it to the appropriate DNS
folder?
If Option 2 is the way to go, should I use WebDAV or some flavor of CDO?
The sequence of events that I forsee happening:
1. Read mailbox.
2. Open each email to read subject
3. Parse subject for classification
4. write .eml file (or .msg) with attachments to DMS (using custom code c#
2.0)
5. Delete email from inbox.
|
|
| Back to top |
|
 |
Glen Scales [MVP]
Guest
|
Posted:
Tue Dec 13, 2005 1:58 am Post subject:
Re: Saving Email to a DMS |
|
|
Either way will work fine doing it as a batch process should lessen the
performance impact of the code compared to an event sink if you are
processing a lot of messages. Advantage of an event sink is that its going
to be closer to real time.
What API really depends on where you want to run your code if you can run it
locally then CDOEX and Exoledb is not a bad choice if you want to run
remotely then WebDAV is a good option. If you want do anything with .msg
files then you need to use MAPI so you need to look at an interface such as
Exmapi,CDO 1.2 or the Outlook Object Model. Apart from the OOM these other
interfaces aren't supported in .NET .If you just want to use .eml then
WebDAV and CDOEX are fine.
Cheers
Glen
"Israel Derdik" <iderdik@no.spam.hotmail.com> wrote in message
news:u72sxE0$FHA.2708@TK2MSFTNGP12.phx.gbl...
| Quote: | I'm trying to save all email sent to a single mailbox (potentially
thousands per day) to different folders in our Document Management System
based on a string found in the emails' subject and then deletes the email
from the mailbox. What would you guys recommend as the best way to do
this?
Option 1: Should this be done with an event sink?
Option 2: Should this be done as a scheduled exe that reads the mailbox
every X minutes, parses the subject and writes it to the appropriate DNS
folder?
If Option 2 is the way to go, should I use WebDAV or some flavor of CDO?
The sequence of events that I forsee happening:
1. Read mailbox.
2. Open each email to read subject
3. Parse subject for classification
4. write .eml file (or .msg) with attachments to DMS (using custom code c#
2.0)
5. Delete email from inbox.
|
|
|
| Back to top |
|
 |
Israel Derdik
Guest
|
Posted:
Wed Dec 14, 2005 5:58 pm Post subject:
Re: Saving Email to a DMS |
|
|
Glen,
Thank you for the excellent and helpful reply.
Israel
"Glen Scales [MVP]" <gscales@outlookexchange.com> wrote in message
news:OMup$V3$FHA.984@tk2msftngp13.phx.gbl...
| Quote: | Either way will work fine doing it as a batch process should lessen the
performance impact of the code compared to an event sink if you are
processing a lot of messages. Advantage of an event sink is that its going
to be closer to real time.
What API really depends on where you want to run your code if you can run
it locally then CDOEX and Exoledb is not a bad choice if you want to run
remotely then WebDAV is a good option. If you want do anything with .msg
files then you need to use MAPI so you need to look at an interface such
as Exmapi,CDO 1.2 or the Outlook Object Model. Apart from the OOM these
other interfaces aren't supported in .NET .If you just want to use .eml
then WebDAV and CDOEX are fine.
Cheers
Glen
"Israel Derdik" <iderdik@no.spam.hotmail.com> wrote in message
news:u72sxE0$FHA.2708@TK2MSFTNGP12.phx.gbl...
I'm trying to save all email sent to a single mailbox (potentially
thousands per day) to different folders in our Document Management System
based on a string found in the emails' subject and then deletes the email
from the mailbox. What would you guys recommend as the best way to do
this?
Option 1: Should this be done with an event sink?
Option 2: Should this be done as a scheduled exe that reads the mailbox
every X minutes, parses the subject and writes it to the appropriate DNS
folder?
If Option 2 is the way to go, should I use WebDAV or some flavor of CDO?
The sequence of events that I forsee happening:
1. Read mailbox.
2. Open each email to read subject
3. Parse subject for classification
4. write .eml file (or .msg) with attachments to DMS (using custom code
c# 2.0)
5. Delete email from inbox.
|
|
|
| Back to top |
|
 |
|
|
|
|