bmenges has asked for the wisdom of the Perl Monks concerning the following question:

I know there's Win32::OLE out there, and while I haven't looked at that option, I'm really trying to stay out of requiring a Windows box for this particular objective. What I'd like to do is run parsing for our abuse inbox which is a public folder on our exchange server. For simplicity sake, lets say its 'Public Folders\abuse'. I've tried several perl modules including Mail::IMAPClient, Net::IMAP (unsuccessful... ugh), Net::IMAP::Simple, Email::Simple, and Net::IMAP::Client; all to no avail. The most recent debug I have is from Mail::IMAPClient:
Started at Thu Apr 21 12:14:01 2011 Using Mail::IMAPClient version 3.28 on perl 5.008005 Connecting via IO::Socket::INET to msexchange:143 Timeout 600 Connected to msexchange errno(Operation now in progress) Read: * OK The Microsoft Exchange IMAP4 service is ready. Sending: 1 LOGIN "user" "****" Sent 35 bytes Read: 1 OK LOGIN completed. Sending: 2 EXAMINE "Public Folders/abuse" Sent 50 bytes Read: 2 NO "Public Folders/abuse" doesn't exist.
Help would be awesome... if this can be done in *nix that would be preferred, if this has to be done in Win32::OLE then well... crap, guess I have to look at that. THX!

Replies are listed 'Best First'.
Re: Using perl to access exchange public folder (linux)
by EvanK (Chaplain) on Apr 21, 2011 at 19:33 UTC
    Have you looked into Email::Folder::Exchange? It doesn't use OLE, but it looks like it requires WebDAV.

    clarification: it looks like WebDAV is required for 2000/2003 and EWS is required for 2007/2010

      Yeah that apparently doesn't work for HTTPS which is the only web-enabled access for our exchange server.
        clarification, it isn't working for our setup - getting error codes attempting to log in... won't access the data.