Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

extra space in subject with tmail

#2351

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 http://www.faqs.org/rfcs/rfc2047... (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:

62a63

from_charset = nil 64c65

< before = $1

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

Reported by luis.lopez (at branelabs) · March 26th, 2009 @ 06:07 PM

State: stale
Milestone: 3.x
Assigned to: nobody
Importance: none

Activity

  1. luis.lopez (at branelabs)
    luis.lopez (at branelabs)
    • Tag set to 2.2.2, actionmailer

    seem that there are some formatting problems so I attach diff file

    March 26th, 2009 @ 06:10 PM

  2. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  3. Łukasz Strzałkowski
    Łukasz Strzałkowski
    • Importance changed from to

    I think it's outdated as now action mailer uses "mail" gem.

    July 13th, 2010 @ 02:09 PM

  4. Mike Riley
    Mike Riley
    • State changed from new to stale

    Hello,

    Łukasz mentioned that this may be outdated due to the fact that actionmailer now uses the "mail" gem. Is this issue still valid? I am marking this as stale for now.

    Mike Riley

    July 29th, 2010 @ 09:03 PM

  5. luis.lopez (at branelabs)
    luis.lopez (at branelabs)
    • Tag cleared.

    It works with rails3.0 so I guess this ticket can be closed.

    September 30th, 2010 @ 10:01 AM