punkish has asked for the wisdom of the Perl Monks concerning the following question:
If the incoming email has a particular subject line (I can use email filter), certain information has to be extracted from the email message (I can use Perl if I can access the message contents), a record with some of the info from the message has to be inserted into a SQL-Server table (use DBI with DBD-ODBC), the message is to be possibly reformatted (of trivial difficulty), and forwarded to one or more pre-determined addresses. All this has to be accomplished unattended and with no human intervention.
The email server is Exchange, and the most likely email client is Outlook.
Initially I "assumed" we were going to use Outlook, tried to run a Perl script from within Outlook, but was not able to... we tried doing it all in VBA using ADO, but ran into a similar problem. Seems like after being burned by too many viruses accessing Outlook innards, MS has made even legitimate access to Outlook very difficult.
I am seeking any advice from fellow monks on a possible approach to solving this problem. If the technique is successful, I think I can even justify ditching Outlook completely and use some other email client. But I am not sure if I can use Perl to directly access an email received by Exchange server.
I found a few discouraging Google hits on MAPI and Perl, and a number of hits on accessing Excel spreadsheets and whatnot. Nothing of the sort I am describing above.
Thanks in advance for any guidance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Controlling Email on Windows with Perl
by saintbrie (Scribe) on Apr 16, 2004 at 03:42 UTC | |
by punkish (Priest) on Apr 16, 2004 at 04:45 UTC | |
by saintbrie (Scribe) on Apr 16, 2004 at 11:10 UTC | |
|
Re: Controlling Email on Windows with Perl
by Errto (Vicar) on Apr 16, 2004 at 04:45 UTC | |
|
Re: Controlling Email on Windows with Perl
by Koosemose (Pilgrim) on Apr 16, 2004 at 04:53 UTC | |
|
Re: Controlling Email on Windows with Perl
by Zero_Flop (Pilgrim) on Apr 16, 2004 at 06:15 UTC | |
by chanio (Priest) on Apr 16, 2004 at 15:52 UTC |