From: Joel Pearson Date: 2013-03-08T20:52:43+09:00 Subject: Re: Question regarding automating some Outlook/IMAP and pdf parsing functions w/ ruby? I'm interested in this kind of thing, so I put together a simple example. The attached connects to an existing outlook session, then proceeds to scan the inbox for messages which match these criteria: Sender's email ends with "@exampledomain.com" Has attachments At least one attachment is '.pdf' Once it finds all the matches it creates a new directory and saves all the matching files into it using unique references, taken from the original filename, part of the email text, and the attachment's existing name. Attachments: http://www.ruby-forum.com/attachment/8207/outlook.rb -- Posted via http://www.ruby-forum.com/.