From: Mark Hahn Date: 2001-12-29T05:32:52+09:00 Subject: [ruby-talk:29584] Re: New Rubygarden poll Thanks. Any way to do this incrementally as mail comes in? -----Original Message----- From: ruby-talk-admin@ruby-lang.org [mailto:ruby-talk-admin@ruby-lang.org]On Behalf Of William Sobel Sent: Friday, December 28, 2001 12:23 PM To: ruby-talk ML Subject: [ruby-talk:29582] Re: New Rubygarden poll For all the unfortunate Outlook users in the world, I offer a small script that will hopefully bring you some joy. This script will remove all the [ruby-talk:...] leaders from your subject line, (or rewrite your subject to be anything you wish). - Will require 'win32ole' # 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