# PATCH for TMail to handle MS Outlook Emails

**URL:** <https://www.ruby-forum.com/t/patch-for-tmail-to-handle-ms-outlook-emails/117890>\
**Category:** Ruby\
**Created:** [October 22, 2007, 5:52am UTC](https://www.ruby-forum.com/t/patch-for-tmail-to-handle-ms-outlook-emails/117890 "2007-10-22T05:52:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Post date:** [October 22, 2007, 5:52am UTC](https://www.ruby-forum.com/t/patch-for-tmail-to-handle-ms-outlook-emails/117890/1 "2007-10-22T05:52:57Z")

</div>

TMail handles the “content-type” header field per RFC 2045.

Per the RFC you can not use /[?/=]/ in the boundary=field unless it is  
quoted, MS Outlook Express (at least) violates this rule.

The fix is to check the boundary= value for the special characters and  
wrap it in quotes if the special characters exist and the field is not  
already quoted.

I have written a patch with failing tests for this and sent it to the  
Maintainer, for anyone else, you can get it now and apply it to TMail  
0.10.8 from here:

> **[The Construction Blog - Tips on Choosing Local Construction Companies](http://www.blognow.com.au)**
>
> Tips on Choosing Local Construction Companies

Or: [The Construction Blog - Tips on Choosing Local Construction Companies](http://tinyurl.com/2kezwr)

Regards

Mikel

---

<div class="post-metadata">

**Author:** ![Mikel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Post date:** [October 22, 2007, 6:47am UTC](https://www.ruby-forum.com/t/patch-for-tmail-to-handle-ms-outlook-emails/117890/2 "2007-10-22T06:47:54Z")

</div>

On Oct 21, 11:52 pm, “Mikel L.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Maintainer, for anyone else, you can get it now and apply it to TMail  
> 0.10.8 from here:
> 
> [The Construction Blog - Tips on Choosing Local Construction Companies](http://www.blognow.com.au/q/76050/Fix_for_TMail_to_handle_MS_Outlook_)…
> 
> Or:[The Construction Blog - Tips on Choosing Local Construction Companies](http://tinyurl.com/2kezwr)

Hi! I recently took over maintenance of this project from Minero A.,  
as he is too busy with other things. I setup a RubyForge project and  
subversion repo. If you are confident in your changes, I’d like to  
give you commit privileges. Email me off list and we can discuss  
further.

T.

---

<div class="post-metadata">

**Author:** ![Mikel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Post date:** [October 24, 2007, 2:30am UTC](https://www.ruby-forum.com/t/patch-for-tmail-to-handle-ms-outlook-emails/117890/3 "2007-10-24T02:30:25Z")

</div>

On Oct 21, 7:52 pm, “Mikel L.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Maintainer, for anyone else, you can get it now and apply it to TMail  
> 0.10.8 from here:
> 
> [The Construction Blog - Tips on Choosing Local Construction Companies](http://www.blognow.com.au/q/76050/Fix_for_TMail_to_handle_MS_Outlook_)…
> 
> Or:[The Construction Blog - Tips on Choosing Local Construction Companies](http://tinyurl.com/2kezwr)
> 
> Regards
> 
> Mikel

Thank you Mikel. I am currently trying to use this library. Thanks  
for your work.

Mike B.

---

<div class="post-metadata">

**Author:** ![Mikel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Post date:** [October 24, 2007, 3:10am UTC](https://www.ruby-forum.com/t/patch-for-tmail-to-handle-ms-outlook-emails/117890/4 "2007-10-24T03:10:44Z")

</div>

On Oct 21, 8:47 pm, Trans [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > wrap it in quotes if the special characters exist and the field is not  
> > Hi! I recently took over maintenance of this project from Minero A.,  
> > as he is too busy with other things. I setup a RubyForge project and  
> > subversion repo. If you are confident in your changes, I’d like to  
> > give you commit privileges. Email me off list and we can discuss  
> > further.
> 
> T.

Trans,

Thanks for keeping this active.

Mike B.
