Hi!

I've discovered a bug in kmail, which makes it hard for Icelandic KDE
users to use kmail (as shipped with KDE 1.1.2) to communicate with
Icelandic Macintosh users.

In the MIME headers created by kmail, the text/plain Content-Type: is
not accompanied by a charset - meaning that the recieving mailer just
displays the message in it's local default character set.  This isn't
a problem for most people, since most people are using the same
character set (iso-8859-1), but Macs use a different charset (here in
Iceland anyway), and I assume people in the far east don't use the
same one either.

I've implemented a crude workaround for this (untested, but should
work), for those of us who use a local sendmail to send our mail - I
just apply sed to the mail before passing it to sendmail.  The script
I use to to so is attached to this message: I install it in
/usr/local/bin/kmail.send and specify that as my "path to sendmail" in
the kmail configuration.

It would of course be nice if this problem could be fixed in the
future, and if you have the time to forward my workaround to any
mailing lists you feel appropriate, people will probably appreciate
it. :-)

-- 
Bjarni R. Einarsson                           PGP: 02764305, B7A3AB89
 [EMAIL PROTECTED]           -><-           http://www.mmedia.is/~bre/

Netverjar gegn ruslp�sti: http://www.netverjar.is/baratta/ruslpostur/
#!/bin/bash
#
# Drop in replacement for "sendmail" in kmail, which fixes the following
# problems with kmail's MIME headers:
#
#     + No charset is specified, which causes no end of grief when trying
#       to communicate with Macs.
#
# Author: Bjarni R. Einarsson <[EMAIL PROTECTED]>
#         This script is in the public domain.
#

CHARSET=iso-8859-1
SENDMAIL=/usr/sbin/sendmail

sed -e 's/^\(Content-Type: text\/plain\) *$/\1; charset='$CHARSET'/' \
    | $SENDMAIL ${@+"$@"}

Reply via email to