Author Topic: Attachments breaking emails  (Read 2160 times)

Offline emmeliv

  • Jr. Member
  • **
  • Posts: 12
Attachments breaking emails
« on: January 13, 2011, 08:58:06 AM »
Hi!

We have a problem with attachments sent by some specific senders. The recieved e-mail is not shown correctly, but the whole mime message is displayed as plain text.
Could you please look into this? Could there be a problem with one of the mime headers?
Below is an message source example of one of the e-mails (I have removed most of the content and just kept the headers)

Code: [Select]
Return-Path: <noreply.xxx@xxx.se>
Original-Recipient: rfc822;xxxx@xxx.xx Received: from xxx (xxx.xx.xx.xx) by xxx (x.x.xx)
        id 4BD65C3C002A786E for xxx@xxx.net; Tue, 1 Jun 2010 06:02:00 +0200
Received: from xxx (xxx.xx.xxx.xxx) by xxx (7.3.140.3)
        id 4AD3E1BA052461B7 for xxx; Tue, 1 Jun 2010 06:02:00 +0200
X-IronPort-AV: E=Sophos;i=&quot;4.53,337,1272837600&quot;;
   d=&quot;gif'147?txt'147?scan'147,208,217,147,150?png'147,208,217,147,150,150?pdf'147,208,217,147,150,150&quot;;a=&quot;74988943&quot;
Received: from xxxx ([xxx.x.xx.xxx])
  by xxxxwith ESMTP; 01 Jun 2010 06:01:59 +0200
Received: from xxxx (localhost [127.0.0.1])
by xxx (8.14.3/8.14.3) with ESMTP id o5141x1o015609
for <xxx@xxx.xx>; Tue, 1 Jun 2010 06:01:59 +0200 (CEST)
(envelope-from xxx@xxx)
Received: (from root@localhost)
by xxx.xxx(8.14.3/8.14.3/Submit) id o5141x5L015608
for xxxx; Tue, 1 Jun 2010 06:01:59 +0200 (CEST)
(envelope-from xxxx)
Date: Tue, 1 Jun 2010 06:01:59 +0200 (CEST)
Message-Id: <201006010401.o5141x5L015608@xxxx>
Content-Type: multipart/mixed;
boundary=&quot;=_12c284881d6b1f47d978efab8d710a68&quot;
Content-Disposition:
Mime-Version: 1.0
From: xxxxx <xxxxx>
To: xxxxx
Subject: Faktura xxxxxxxx
Reply-To: xxxx <xxxxx>
X-xxxx-Invoice: MTIzMjUwNjk4OjZjMjk1YTUxYjQwOTdhZjk5N2RmMjAzYmIyZjUxNDE2ZGQ3NjBhNTg=

--=_12c284881d6b1f47d978efab8d710a68
Content-Type:multipart/alternative;
boundary=&quot;=_0983de02a7c10b45488014153bb7dd83&quot;

--=_0983de02a7c10b45488014153bb7dd83
Content-Transfer-Encoding: base64
Content-Type: text/plain;
 name=&quot;123250698.txt&quot;; charset=&quot;UTF-8&quot;;

DQoNCg0KRmFrdHVyYSAxMjMyNTA2OTggICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
bmspICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgDQo=
--=_0983de02a7c10b45488014153bb7dd83
Content-Type:multipart/related;
boundary=&quot;=_571269fd5b79438accb878eef3b6c81f&quot;

--=_571269fd5b79438accb878eef3b6c81f
Content-Transfer-Encoding: base64
Content-Type: text/html; charset=&quot;UTF-8&quot;

PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0Ly9FTiIg
Imh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXN0cmljdC5kdGQiPgo8aHRt
cDs8L3RkPgoJPC90cj4KCTwvdGFibGU+CjwvYm9keT4KPC9odG1sPg==
--=_571269fd5b79438accb878eef3b6c81f
Content-Transfer-Encoding: base64
Content-ID: <top.1234.63D323.329314.42@loopia.se>
Content-Type: image/png;
 name=&quot;top.png&quot;;
Content-Disposition: inline;
 filename=&quot;top.png&quot;;

iVBORw0KGgoAAAANSUhEUgAAAiYAAAAOCAYAAAAbrtc0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAA
mjIxAADwMVmWaTKZ6HA4yBijyHuvoiiIEgAAEMRisVBRFPLeK0qSRHmeMxUAABBMnudKkkTRcrlk
GgAAILjVaqVoNpsxCQAAENx8Ppep69pHUcQ0AABAUM45/QNj0srq2FE1gwAAAABJRU5ErkJggg==
--=_571269fd5b79438accb878eef3b6c81f
Content-Transfer-Encoding: base64
Content-ID: <bottom.1234.63D323.329314.42@loopia.se>
Content-Type: image/png;
 name=&quot;bottom.png&quot;;
Content-Disposition: inline;
 filename=&quot;bottom.png&quot;;

iVBORw0KGgoAAAANSUhEUgAAAiYAAAAOCAYAAAAbrtc0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAA
/LlP7fR1SgH2z9c21xDSf3jz3bvk44IJQPCijryUqeMnriX23G5PRr6ekhBMAIDgRR0JXZPc618+
Y5SybAEnYAAAAABJRU5ErkJggg==
--=_571269fd5b79438accb878eef3b6c81f
Content-Transfer-Encoding: base64
Content-ID: <logo.1234.63D323.329314.42@loopia.se>
Content-Type: image/gif;
 name=&quot;logo.gif&quot;;
Content-Disposition: inline;
 filename=&quot;logo.gif&quot;;

R0lGODlheAAfAMZMAIiIiImJiYqKiouLi4yMjI2NjY6Ojo+Pj5CQkJGRkZKSkpOTk5SUlJWVlZaW
lpeXl5iYmJmZmZqampubm5ycnJ2dnZ6enp+fn6CgoKGhoaKioqOjo6SkpKWlpaampqenp6ioqKmp
cm6JEKssIwJ2heTEPRXAHyH5YhWAmoLwsCJIk0RbCDwVKxIdn4zQ8MEFXHft9QVH/9FCB1973QHI
hdQAQtlda3ACqX/sQEIOS1QiQjWFfMBqf/UwEggAOw==
--=_571269fd5b79438accb878eef3b6c81f--
--=_0983de02a7c10b45488014153bb7dd83--

--=_12c284881d6b1f47d978efab8d710a68
Content-Transfer-Encoding: base64
Content-Type: text/plain;
 name=&quot;123250698.txt&quot;; charset=&quot;UTF-8&quot;;
Content-Disposition: attachment;
 filename=&quot;123250698.txt&quot;;

DQoNCg0KRmFrdHVyYSAxMjMyNTA2OTggICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICANClV0c2tyaWZ0c2RhdHVtOiAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICANClNXSUZUOiBTV0VEU0VTUyAoU3dlZGJh
bmspICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgDQo=
--=_12c284881d6b1f47d978efab8d710a68
Content-Transfer-Encoding: base64
Content-Type: application/pdf;
 name=&quot;123250698.pdf&quot;;
Content-Disposition: attachment;
 filename=&quot;123250698.pdf&quot;;

JVBERi0xLjQKJeLjz9MKMSAwIG9iaiAKPDwvVHlwZSAvQ2F0YWxvZyAvVmVyc2lvbiAvMS40IC9Q
MDAwMDAwMDU2MSAwMDAwMCBuIAowMDAwMDA4ODA0IDAwMDAwIG4gCjAwMDAwNzY4NjMgMDAwMDAg
biAKMDAwMDA3Njk2NiAwMDAwMCBuIAp0cmFpbGVyCjw8L0lEIFs8MzczMDM1MzIzMjYzNjM2MTM3
Mzg2NjY0Mzc2NTM4NjI+IDw2MjM2MzA2MjY0MzE2NjY0Mzk2MTYzMzgzNjMzMzk2NT4gXSAvU2l6
ZSAxMiAvUm9vdCAxIDAgUiAvSW5mbyAzIDAgUiA+PgpzdGFydHhyZWYKNzcwNjQKJSVFT0YK
--=_12c284881d6b1f47d978efab8d710a68--


Thank you!