[haiku-3rdparty-dev] BEmailMessage

  • From: Andrew Wood <andrew@xxxxxxxxxxxxxxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Sat, 04 Oct 2014 22:44:31 +0100

Im doing some poking around in the Mail Kit as Ive written a mailing list server for Haiku which is currently being used internally by us and I hope to release it eventually once its progressed a bit further.


The server writes the outgoing email into a temp text file which is then passed to a BEmailMessage object for transmission using the mail daemon

One problem Im having is that UTF8 emails are getting altered by BEmailMessage such that certain mail clients (in particular Thunderbird) won't display them.

After doing some tests the problem appears to be a modification to the Content-Type header

The incoming email and the one passed to BEmailMessage is in the form:
Content-Type: multipart/mixed;
    boundary="_AA8B9F75-F456-45D0-96E8-99EF801DCBD4_"

but having passed through BEmailMessage and sent it ends up as:

Content-Type:
 multipart/mixed;
=?iso-8859-15?q?boundary=3D?="_AA8B9F75-F456-45D0-96E8-99EF801DCBD4_

Why does it do this and is there a way to prevent it?

Thanks
Andrew




Other related posts: