I've got a computer generated status mail, sent once a day. Thunderbird and Outlook both display the message fine, but Squirrelmail pukes and displays the raw message body. I am sure it's something I am doing wrong when generating the mail, but I can't figure it out.

The raw mail looks like this (abbreviated for readability):
Return-Path: <[EMAIL PROTECTED]>
Received: from surefoot.com (localhost [127.0.0.1])
	by surefoot.com (8.12.10/8.12.10) with ESMTP id k13Ikrbn007728
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <[EMAIL PROTECTED]>; Fri, 3 Feb 2006 11:46:53 -0700
Received: (from [EMAIL PROTECTED])
	by surefoot.com (8.12.10/8.12.10/Submit) id k13IkrG2007727;
	Fri, 3 Feb 2006 11:46:53 -0700
Date: Fri, 3 Feb 2006 11:46:53 -0700
Message-Id: <[EMAIL PROTECTED]>
To: Jens Knoell <[EMAIL PROTECTED]>
Subject: [Surefoot] Daily network status report
From: Network Diagnostics <[EMAIL PROTECTED]>
X-Mailer: PHP/5.1.1
Precedence: bulk
Content-Type: multipart/related;
 boundary="------------010009010800050208050008"

This is a MIME encoded message.
--------------010009010800050208050008
Content-Type: text/html; charset="iso-8859-1"

<html><body bgcolor=#ffffff text=#000000><font face="Arial,Helvetica">
[...stuff snipped...]
</font></body></html>

--------------010009010800050208050008
Content-Type: image/png
Content-ID: spamfilter
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="spamfilter.png"

iVBORw0KGgoAAAANSUhEUgAAAfQAAACHBAMAAAFlPob0AAAAHlBMVEX19fXCwsJkZGT/AAAAzAAA
[...stuff snipped...]
n5H+VL8/9aEJz6T/AH+EGCFa2oAUAAAAAElFTkSuQmCC

--------------010009010800050208050008
Content-Type: image/png
Content-ID: backupserver
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="backupserver.png"

iVBORw0KGgoAAAANSUhEUgAAAfQAAACHBAMAAAFlPob0AAAAHlBMVEX19fXCwsJkZGT/AAAAzAAA
[...stuff snipped...]
rkJggg==

--------------010009010800050208050008
Content-Type: image/png
Content-ID: virusscanner
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="virusscanner.png"

iVBORw0KGgoAAAANSUhEUgAAAfQAAACHBAMAAAFlPob0AAAAHlBMVEX19fXCwsJkZGT/AAAAzAAA
[...stuff snipped...]
gpQh6dTSu6HtWdGGuSviJ/lR9Y8m1MRfO4LckZBRguIAAAAASUVORK5CYII=

--------------010009010800050208050008
Content-Type: image/png
Content-ID: vpnstats
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="vpnstats.png"

iVBORw0KGgoAAAANSUhEUgAAAfQAAACHBAMAAAFlPob0AAAAHlBMVEX19fXCwsJkZGT/AAAAzAAA
[..stuff snipped...]
kv4H/Ty/m5gEFyAAAAAASUVORK5CYII=

--------------010009010800050208050008
Content-Type: image/png
Content-ID: wantraffic
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="wantraffic.png"

iVBORw0KGgoAAAANSUhEUgAAAfQAAACHBAMAAAFlPob0AAAAHlBMVEX19fXCwsJkZGT/AAAAzAAA
[...stuff snipped...]
ieaW6+OQMCPj6Urr7rUnpq9u7jOmf4d/nvrShGem/wNBiFxXmujvrgAAAABJRU5ErkJggg==


--------------010009010800050208050008--

The catch is that Squirrelmail just shows the raw body - it does not seem to recognize the boundary markers or something. Thunderbird and Outlook  do though. I'm thinking I am missing something fundamental. Any suggestions?

Thanks
Jens



Reply via email to