Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #1930 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

[XPATCH] Underscores Are Removed When Reading TMail#body

Reported by: rails@johnwlong.com Assigned to: David
Priority: normal Milestone:
Component: ActionMailer Version: 0.13.1
Severity: normal Keywords: underscores TMail#body
Cc: rails@johnwlong.com

Description

Underscores are incorrectly removed from a quoted-printable body when TMail#body is called. This is illustrated by the following test:

  def test_body
    m = TMail::Mail.new
    expected = 'something_with_underscores'
    m.encoding = 'quoted-printable'
    quoted_body = [expected].pack('*M')
    m.body = quoted_body
    assert_equal "something_with_underscores=\n", m.quoted_body
    assert_equal expected, m.body # this fails
  end

The last assert fails, but I believe that it should pass.

Attachments

action_mailer_underscores3.patch (2.3 kB) - added by rails@johnwlong.com on 08/09/05 15:06:59.
A couple of unit tests which demonstrate the problem

Change History

08/09/05 15:06:59 changed by rails@johnwlong.com

  • attachment action_mailer_underscores3.patch added.

A couple of unit tests which demonstrate the problem

08/09/05 15:09:46 changed by anonymous

  • cc set to rails@johnwlong.com.

08/16/05 03:50:39 changed by anonymous

  • summary changed from Underscores Are Removed When Reading TMail#body to [PATCH] Underscores Are Removed When Reading TMail#body.

08/18/05 21:00:47 changed by rails@johnwlong.com

  • summary changed from [PATCH] Underscores Are Removed When Reading TMail#body to [XPATCH] Underscores Are Removed When Reading TMail#body.

09/01/05 14:45:26 changed by minam

  • status changed from new to closed.
  • resolution set to fixed.