#!/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 # 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 ${@+"$@"}