# Re: unsubscribe

**URL:** <https://www.ruby-forum.com/t/re-unsubscribe/81214>\
**Category:** Ruby\
**Created:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/re-unsubscribe/81214 "2007-01-06T19:30:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/re-unsubscribe/81214/1 "2007-01-06T19:30:12Z")

</div>

It’s BROKEN. I’ve tried this many times, in many ways.

----- Original Message ----  
From: Mat S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: ruby-talk ML [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Thursday, January 4, 2007 7:08:51 AM  
Subject: Re: unsubscribe

On Jan 4, 2007, at 6:56 AM, Alvin Thew wrote:

> List-Id: [ruby-talk.ruby-lang.org](http://ruby-talk.ruby-lang.org)  
> List-Software: fml [fml 4.0.3 release (20011202/4.0.3)]  
> List-Post: [mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> List-Owner: [mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> List-Help: [mailto:removed\_email\_address@domain.invalid?body=help](mailto:removed_email_address@domain.invalid?body=help)  
> List-Unsubscribe: \<[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)?  
> body=unsubscribe\>

We can’t unsubscribe you, but you’ll find these in the headers for  
most mailing lists. The List-Unsubscribe header is telling you to  
send an email to removed\_email\_address@domain.invalid with ‘unsubscribe’ in  
the body.  
-Mat

---

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [January 6, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/re-unsubscribe/81214/2 "2007-01-06T19:31:04Z")

</div>

On 1/4/07, David P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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. I know that people who use gmail have  
had problems when they send their messages in UTF-8 because the  
messages are encoded base64.

-austin

---

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/re-unsubscribe/81214/3 "2007-01-19T16:31:24Z")

</div>

Hi,

Am Donnerstag, 04. Jan 2007, 23:52:06 +0900 schrieb Austin Z.:

> On 1/4/07, David P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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 ([http://opensource.bertram-scharpf.de/sites/cropmail](http://opensource.bertram-scharpf.de/sites/cropmail)):

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
