[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    kmail fixing MIME messages.
From:       Ruben Marrero <ruben () lingo ! com ! mx>
Date:       2002-09-13 21:30:49
[Download RAW message or body]

Hello all:

While debugging a PHP/web-based app, we found the following behavior in
Kmail 1.4.1 (as shipped with RH 7.3):

In a fairly simple mime-encoded message, we forgot to separate the
headers from the quoted-printable encoded message, and in the boundary
definition, we added an (optional) semicolon at the end of the line. The
headers looked liked this:

Content-Type: Multipart/Mixed;
  boundary="----------------------MM-1031967168-1511025421";

and somewhere else:

Content-Disposition: attachment; filename="Mensaje de prueba.html"

<html>

  <head>
    <title>Mail telcel</title>
    <!--
Changed

(notice the lack of separation between the headers and body)

When kmail received this message, it munged it to the proper form:

Content-Type: Multipart/Mixed;
  boundary="----------------------MM-1031967168-1511025421"

and

Content-Disposition: attachment; filename="Mensaje de prueba.html"


<html>

  <head>
    <title>Mail telcel</title>
    <!--
Changed
and it saved it to its inbox.


Now, I have two questions, first one: Is this true?, does kmail "fix"
messages to follow proper MIME? and if this is so, should it be doing
it?

Let me explain, since we where checking our PHP-generated mail with
kmail, and kmail was fixing it for us, this bug simply slipped by and
we spent a lot of time trying to fix it and told the client that his MUA
was faulty, when he couldn't see anything we where sending!

Wouldn't it be better that if kmail does fix messages, to add a header
like
X-incorrect-MIME-fixed-by: KMail
or something like that? :-)


Thanks in advance



_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic