[imp] Decoding of multilined quoted-printable-encoded subjects
Michael M Slusarz
slusarz at bigworm.colorado.edu
Mon Apr 5 13:40:48 PDT 2004
Quoting Oliver Kuhl <okuhl at netcologne.de>:
> Hi!
>
> I am not sure if I this is really a bug or a malformed email. I got a
> mail with a quoted-printable-encoded subject. As rfc says,
> quoted-printable subjects *may* have a linebreak, if the encoded string
> is longer than x letters (75 or something like that).
>
> This mail has such a subject:
> =?iso-8859-1?Q?Antwort_auf_Burn_Baby=2C_Burn=21_-_Sch=FCtzt_di?=
> =?iso-8859-1?Q?e_Privatkopie=2E?=
> ^^^^^^^^
> There are several blanks before the second line and I left out the
> "Subject:"-Part in the first line to get that one in one line.
>
> The line-break is in the middle of the german word "die" an the subject
> is displayed in IMP as followed:
> "Antwort auf Burn Baby, Burn! - Schützt di e Privatkopie."
> ^^^
> Is this the correct behaviour?
Sorry for the lateness in the response...
According to RFC 2047:
If it is
desirable to encode more text than will fit in an 'encoded-word' of
75 characters, multiple 'encoded-word's (separated by CRLF SPACE) may
be used.
I verified that the above example renders just fine (i.e. no space between the
'i' and 'e') if there is only a CRLF SPACE between the two lines. Obviously,
in the email you received, there was multiple whitespace (i.e. a tab and a
space) on the second line which, according to RFC 2047, would correctly be
displayed as 'di e' - since only one SPACE character should be removed.
michael
______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder
More information about the imp
mailing list