multipart message with pdf file gets truncated
Julien Vehent
julien at linuxwall.info
Thu Apr 7 16:48:00 EDT 2011
Hi list,
I'm trying to diagnose a problem with a user receiving PDF files that
get truncated somehow.
One of my user received a PDF file in his inbox today, and second part
of the page of the attached PDF is blank.
He asked the sender to resend the same email to an external mailbox on
gmail, and the pdf was displaying fine (ruling out a possible problem on
the sender's side).
I went to the cyrus partition and copied the raw email in a local text
file that I opened with thunderbird. The PDF is also truncated. (so it's
not a MUA problem).
I am trying to diagnose this, but I'm not sure where to start. The
software stack is as follow:
-----Debian Squeeze--------------------------------------
---------> [openldap]
smtp->+----------+/
| postfix | -> postgrey
| | -> dspam
+----------+
\
`--------->[cyrus-imap-2.2.13-19]
---------------------------------------------------------
Sample of the email below:
======================================================
[....]
Message-ID: <004e01cbf535$97ac62c0$c7052840$@fr>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_004F_01CBF546.5B3532C0"
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: Acv1NZdYOJh+BtBQRUSMKv2Kl/KRlA==
Content-Language: fr
[....]
This is a multi-part message in MIME format.
------=_NextPart_000_004F_01CBF546.5B3532C0
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0050_01CBF546.5B3532C0"
------=_NextPart_001_0050_01CBF546.5B3532C0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Salut
[....]
------=_NextPart_001_0050_01CBF546.5B3532C0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
[....]
class=3DMsoNormal><o:p> </o:p></p></div></body></html>
------=_NextPart_001_0050_01CBF546.5B3532C0--
------=_NextPart_000_004F_01CBF546.5B3532C0
Content-Type: application/pdf;
name="FC 2361.pdf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="FC 2361.pdf"
%PDF-1.3
%=FF=FF=FF=FF
1 0 obj=0A=
<<=0A=
/Filter /Standard=0A=
/U
<1ADBE3C9C640824CF6754B336A1088DEC6510A59D6C4818C90072BDCAA5E3190>=0A=
/O
<20DF7A5FA972C424A023D59CC861F679B476BF87250F63CEAA69C43AB43F9F41>=0A=
/P -3852=0A=
/V 1=0A=
[....]
%%EOF=0A=
------=_NextPart_000_004F_01CBF546.5B3532C0--
==========================END============================================
Now, without being a MIME expert, I assume that the last "NextPart"
line not being followed by anything is not a good thing.
Any hing on where I should look to diagnose this ?
Thanks a lot,
Julien Vehent
More information about the Info-cyrus
mailing list