Extract mail from Exchange and load into Mysql. Perl Win32::OLE or Perl Net::POP3, or try it in Ruby -


my problem this: need determine timestamp of first , last email sent exchange account every day mail exists for. also, each day need rank words appear in each email can report trend words each day.

i have 2 approaches i'm considering, , welcome comments , suggestions relating either these approaches or entirely different.

i've discounted exporting file outlook csv file include time stamp fields in output, crucial factor me.

approach #1 is:

use perl , net::pop3 pull messages out of inbox, mung them , insert them mysql database.

approach #2 is:

use win32:ole attempt act proper exchange client, same end.

if use win32::ole you'll have either use outlook automation or cdo libraries. i've done both in previous life, , works, it's bit painful.

i'd suggest approach #1 except can't imagine exchange allow fetch sent mail through pop. rather, though, exchange can enabled expose imap interface, , imap should let @ sent mail without running of problems associated pop (for example, replacing deleted messages on server). haven't used mail::imapclient appears recommended module this.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -