This project is archived and is in readonly mode.

#2351 ✓stale
luis.lopez (at branelabs)

extra space in subject with tmail

Reported by luis.lopez (at branelabs) | March 26th, 2009 @ 06:07 PM | in 3.x

if the subject of a mail is something like: Subject: =?iso-8859-1?Q?V=E0ries_cos?= =?iso-8859-1?Q?es?=

An extra space is inserted between "cos" and "es" so we have "cos es" instead of "coses". It is wrong as we can see in (just look at the sample that says "White space between adjacent 'encoded-word's is not displayed.")

The problem is in quote.rb (in actionmailer-2.2.2/lib/action_mailer/vendor/tmail-1.2.3/tmail/quoting.rb).

I just changed a couple of lines and it seems to work. This is the diff:


from_charset = nil 64c65

< before = $1

      before = (from_charset && $2 && $1.strip=="") ? "" : $1

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>