Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have several daily reports that are automatically e-mailed to an Exchange account that I normally access through Outlook Web Access. As part of my job I get to log in daily and record numbers into a master stats file. Fun times. Not.

I would love to be able to write a Perl script to parse the e-mails for the relevant data so I don't have to do it manually anymore. Each e-mail comes in a consistent format, so parsing it won't be a problem. Making the e-mails accessible to Perl is the tricky part.

What would be the best way to have a Perl script access and parse e-mails on an Exchange server?

share|improve this question
up vote 1 down vote accepted

Exchange supports IMAP and POP connectors. And at many corporations, these connectors are left enabled (for easy access from platforms that may not have MS Outlook clients, such as unix)

If there is an IMAP and/or POP interface enabled in your environment (just ask your sys-admin), then this task will become a lot easier.

With a google search, I was able to come with these (some are old, so not sure if they will still work or not):

There is also this module which can apparently access native exchange folders:

Hope this helps.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .