Corrupt email MIME header

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Support Staff, moderators

Post Reply
musabio
User
Posts: 26
Joined: Tue Jun 20, 2006 12:22 am

Corrupt email MIME header

Post by musabio » Wed Jun 06, 2007 5:47 pm

I'm using the driver API to send PDFs by email using the SMTP method, and occasionally we have reports of people receiving the email with a corrupted MIME header (primarily missing the Mime Version identifier), with the result that instead of appearing as an attached PDF, all of the MIME data is just in the email body.

Because the problem is intermittent, it is hard to isolate, and once it happens, the evidence is further corrupted by the anti-spam headers inserted by the various mail processing agents. So I guess I'm wondering whether this problem has ever been reported before and whether you have any advice on how to resolve it.

Here's an excerpt of what the problem looks like when the email is received (with the actual customer domains xxxxx'd out):

X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on
mxavas13.fe.aruba.it
X-Spam-Level:
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO,
MIME_HEADER_CTYPE_ONLY,NO_REAL_NAME,SUBJ_ALL_CAPS autolearn=disabled
version=3.1.7
Received: from unknown (HELO server1.xxxxxx.loc) (82.88.75.100)
by mxavas13.fe.aruba.it with SMTP; 4 Jun 2007 14:01:41 -0000
Received: from friend ([192.168.0.2]) by server1.xxxxxx.loc with Microsoft
SMTPSVC(5.0.2195.6713);
Mon, 4 Jun 2007 16:04:18 +0200

From: <info@xxxxxx.com>
To: <info@yyyyyyy.com>
Subject: FT 1179 31/05/07
Content-Type: multipart/mixed;


boundary="--=_NETLIB30_3.50.0100_9131343342434885444401641372311855557"
X-Mailer: netlib30 v. 3.50.0100
Return-Path: info@xxxxxx.com
Message-ID: <SERVER1fJnmSx5eiAAW0000002b@server1.ccssrl.loc>
X-OriginalArrivalTime: 04 Jun 2007 14:04:18.0078 (UTC) FILETIME=[3DDEC3E0:01C7A6B1]
Date: 4 Jun 2007 16:04:18 +0200


----=_NETLIB30_3.50.0100_9131343342434885444401641372311855557
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable


Come=20d'accordi=20alleghiamo=20copia=20del=20documento=20in=20oggetto=0Ap=
er=20la=20Vostra=20archiviazione.=0A=0ADistinti=20Saluti

----=_NETLIB30_3.50.0100_9131343342434885444401641372311855557
Content-Type: application/octet-stream;
name="=?utf-8?B?MDdmMDAxMTc5LnBkZg==?="
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="=?utf-8?B?MDdmMDAxMTc5LnBkZg==?="


JVBERi0xLjQKJQozIDAgb2JqCjw8Ci9Qcm9kdWNlciAoUERGLVhDaGFuZ2UgMy41MC4wMTAwIFwo
V2luZG93cyAya1wpKQovQ3JlYXRpb25EYXRlIChEOjIwMDcwNjA0MTYwNDE3KzAxJzAwJykKPj4K
ZW5kb2JqCjUgMCBvYmoKPDwKL1R5cGUgL1hPYmplY3QKL1N1YnR5cGUgL0ltYWdlCi9XaWR0aCA2
etc.

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Thu Jun 07, 2007 10:21 am

Hi,

This is going to be very difficult for us trace and help with remotely - it seems that the issue is most likely due to some local settings with the users MS SMTP server setup - but exactly what the issue is .....

If we thought it would help - we could install MS SMTP server locally - but duplicating the issue is not going to be easy - if we can do so at all without being able to exactly replicate their installation which of course is impossible to do locally.

Could you arrange for such a user to send to us directly several emails to see if one or more arrive displaying this issue please ?

If so - please email to usrfiles@tracker-software.com with a link within the email body back to this forum message for reference.

Also another possible work around which may or may not be acceptable - use the 'email.zip' method provided to wrap the files in a zip archive - this could possibly help to ensure they are embedded without corruption.

HTH
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply