From: Bertram Scharpf Date: 2007-01-05T05:22:34+09:00 Subject: Re: unsubscribe Hi, Am Donnerstag, 04. Jan 2007, 23:52:06 +0900 schrieb Austin Ziegler: > On 1/4/07, David Phillips wrote: > >It's BROKEN. I've tried this many times, in many ways. > > Unsubscription isn't actually broken; there are feature limits. One of > those may be that your mail client sends messages in quoted-printable > format (I checked this against the original format in gmail) as > opposed to simple plain ASCII. irb(main):001:0> "=5f=2e=3a=2a=49=2a=3a=2e=5f".unpack "M*" => ["_.:*I*:._"] > I know that people who use gmail have > had problems when they send their messages in UTF-8 because the > messages are encoded base64. irb(main):002:0> "Xy46KkkqOi5f".unpack "m*" => ["_.:*I*:._"] Or just call (): mymessage.decoded =~ /.../u Regarding multipart messages (untested): class Cropmail::Message def body_matches re if is_multipart? then each { |p,invisible| # invisible is preamble or epilogue return p.body_matches re unless invisible } else decoded =~ re end end end mymessage.body_matches /.../u Time for a Ruby ML Server? Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de