Google
 
Web asimjalis.blogspot.com

Monday, November 22, 2004

Accessing MAPI in Ruby

by Asim Jalis

William Sobel provides this brief example on how to access MAPI from Ruby: # Open a MAPI session session = WIN32OLE.new('Mapi.session') session.logon('_Your Account Name_') # Get the INBOX messages = session.inbox.messages messages.each do |m| m.subject = m.subject.sub(/\[ruby-talk:[0-9]+\] /o, '') m.update end The page is no longer available on the web. However you can view a Google archive by searching for Ruby MAPI Sobel.