multipart message with pdf file gets truncated

Julien Vehent julien at
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]
       | postfix  | -> postgrey
       |          | -> dspam

 Sample of the email below:

 Message-ID: <004e01cbf535$97ac62c0$c7052840$@fr>
 MIME-Version: 1.0
 Content-Type: multipart/mixed;
 X-Mailer: Microsoft Office Outlook 12.0
 Thread-Index: Acv1NZdYOJh+BtBQRUSMKv2Kl/KRlA==
 Content-Language: fr
 This is a multi-part message in MIME format.

 Content-Type: multipart/alternative;

 Content-Type: text/plain;
 Content-Transfer-Encoding: 7bit



 Content-Type: text/html;
 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" =


 Content-Type: application/pdf;
 	name="FC 2361.pdf"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
 	filename="FC 2361.pdf"

 1 0 obj=0A=
 /Filter /Standard=0A=
 /P -3852=0A=
 /V 1=0A=





 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