girarde has asked for the wisdom of the Perl Monks concerning the following question:
The script runs on a Windows 2003 server that does not, and will not, have Outlook installed.
Authen::NTLM does not seem to be willing to use the current user's credentials. Any ideas for how to read this mail into the script without installing a client?
UPDATE:
I am also using Email::Folder::Exchange, which is what is complaining about not having credentials available. Snippet below:
#!/c/perl/bin/perl use strict; use warnings; use Email::Folder::Exchange; use Authen::NTLM; my $user = ntlm_user(); my $password = ntlm_password(); my $folder = Email::Folder::Exchange->new('https://fqdn.com/Exchange/o +rgbox/Inbox', $user, $password); my $pile; for my $message ($folder->messages) { if ($message->header('Subject') =~ /Addition to EPAS Training Sit +e for 18 FLTS/) { $pile .= $message->body; last; } } print $pile; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading mail from an exchange mailbox, no Outlook
by tokpela (Chaplain) on Sep 24, 2010 at 01:26 UTC | |
by girarde (Hermit) on Sep 24, 2010 at 19:49 UTC | |
by roboticus (Chancellor) on Sep 24, 2010 at 23:42 UTC | |
|
Re: Reading mail from an exchange mailbox, no Outlook
by bellaire (Hermit) on Sep 24, 2010 at 00:55 UTC | |
|
Re: Reading mail from an exchange mailbox, no Outlook
by afoken (Chancellor) on Sep 24, 2010 at 04:12 UTC | |
by girarde (Hermit) on Sep 24, 2010 at 19:54 UTC |