Author Topic: Corrupt Attachments  (Read 5948 times)

Offline arvoreen

  • Newbie
  • *
  • Posts: 5
Corrupt Attachments
« on: January 16, 2007, 12:05:21 PM »
I'm having a problem with attachments being corrupted.

Sent a small (~200K) ZIP file, and it loses 131 bytes (*edit: I had originally said 121, when it was actually 131) when I download it using Roundcube. Through Outlook Express it downloads fine.

~133K JPEG worked fine through roundcube.

I'm not fully sure how to go about fixing this, anyone have any pointers? I've looked through the forums, but have been unable to find anything that relates to my issue (with a solution, anyway).

Thanks!

*Edit:
Tried ~400K executable (Windows .EXE), came over fine.
~33K .ZIP, and it lost 216 bytes somewhere along decoding

This leads me to believe it has something to do with .ZIP files, but should that even matter? Still working on this, trying to find where in the code it could be breaking stuff. Help == appreciated!

Offline sirocco

  • Newbie
  • *
  • Posts: 3
Re: Corrupt Attachments
« Reply #1 on: April 23, 2007, 04:48:17 AM »
Hello,

I'm having the same problem.
I've installed two webmail on a Linux server.

When downloading a 131 kb .rar file from roundcube, 35 bytes are missing while it's ok using another webmail.

Guillaume

Offline alpha39

  • Newbie
  • *
  • Posts: 4
Re: Corrupt Attachments
« Reply #2 on: August 23, 2007, 01:35:06 PM »
I'm having the exact same issue here, using current stable versions of php and apache.

It appears that smaller attachments, perhaps less then 2 megabytes work just dandy, but anything bigger ends up corrupted on download. When the messages are downloaded from the server with a mail client, they work just fine.

I've increased the memory_limit in php.ini with no difference. A 27MB file becomes 22MB when downloaded.

So what's going on here folks?

Offline alpha39

  • Newbie
  • *
  • Posts: 4
Re: Corrupt Attachments
« Reply #3 on: August 23, 2007, 02:08:59 PM »
Whoops, missed the more current thread on similar issues.

However, the localization fix does not appear to be the solution here. I'm already set to "English US", changing it then setting it back makes no difference.

Offline morfar

  • Newbie
  • *
  • Posts: 7
Re: Corrupt Attachments
« Reply #4 on: August 31, 2007, 07:37:33 AM »
I think I also have this problem, which I mentioned in my recent post (the PDF thingy)
http://roundcubeforum.net/forum/index.php?topic=2086.msg8289#new

When I download an attached pdf from RC, I can't open it with my PDF viewer, like kpdf or Acrobat reader on Windows.
But Kmail and Outlook open the attachment just fine.

Though I also tried with another PDF that work just fine.

Here is the header snip, from the bad pdf attachment.
Code: [Select]
Subject: PDF fil - test
Date: Tue, 28 Aug 2007 16:53:29 +0200
Message-ID: <006c01c7e983$323b4080$9601a8c0@LILLF>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=&quot;----=_NextPart_000_006D_01C7E993.F5C41080&quot;
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.6626
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
Importance: Normal
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at my.mailserver.tld

This is a multi-part message in MIME format.

------=_NextPart_000_006D_01C7E993.F5C41080
Content-Type: text/plain;
charset=&quot;iso-8859-1&quot;
Content-Transfer-Encoding: 7bit

Axapta report
------=_NextPart_000_006D_01C7E993.F5C41080
Content-Type: application/octet-stream;
name=&quot;AxaptaReport.PDF&quot;
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename=&quot;AxaptaReport.PDF&quot;

If I am way off the subject of this thread please forgive me, and let me know :)

Cheers

Best regards
Morfar

Offline jacy

  • Newbie
  • *
  • Posts: 2
Re: Corrupt Attachments
« Reply #5 on: September 16, 2007, 09:47:05 AM »
Did this ever get resolved? I searched for the other thread -- the one that mentions a localization fix -- and couldn't come up with anything. I'm having the exact same problem; PDF attachments (haven't tried others yet) are corrupted when downloaded via Roundcube, but are fine in Outloook.

~Jacy

Offline jacy

  • Newbie
  • *
  • Posts: 2
Re: Corrupt Attachments
« Reply #6 on: September 16, 2007, 10:04:20 AM »
Sorry to rudely reply to my own thread but wanted to report that I found and fixed the localization and the same PDF files that were corrupt on download yesterday opened fine today.

In case someone's not exactly sure how this is handled, open main.in.php and look for:

Code: [Select]
// the default locale setting
$rcmail_config['locale_string'] = 'en';

Change it to:

Code: [Select]
$rcmail_config['locale_string'] = 'en_US';
It worked for me; hope it helps anyone else (working in US English, anyway) searching on corrupt PDF attachments.

~Jacy