The xls files are all under 2M. In fact, one file originaly sent had about 67k and the file identified to save by roundcube had 2k. Maybe it's not about limits.
Thanks,
----- Original Message ----- From: "Mark Clarkson" mark.clarkson@smorg.co.uk To: users@lists.roundcube.net Sent: Wednesday, September 27, 2006 1:31 PM Subject: Re: Download specific attachments from e-mails
I had this problem. You'll probably find you'll have problems with all attachments over 2MB. There are limits set in the roundcube config files (db.inc.php was the culprit I think) and for interest also take a look at your php configs.
On Wed, 2006-09-27 at 12:58 +0300, Mircea Galut wrote:
Hi,
I recently discovered that I cannot download corectly certain attachments, like xls or wmv files for example. I tried with different extensions, .doc's or image files work fine.
How does this happen: when opening the message I get the list of attachments where it describes corectly the name and extension of files. When clicked for saving on the local drive, the file name in the save window becomes 'mail' or 'mail2.2' of an unknown type and with a smaller size (I downloaded it with Outlook Express and compared files). That's what happened with the xls file; the wmv file size appeared corectly (about 2M) but the name was still 'mail2.2'.
From reading the sources of Roundcube I think the problem is when it tries to identify the mime parts of the message (mimeDecode.php). Am I correct? Do I need to upgrade some library or specific application?
Thanks a lot, jax
You're probably right. I've just downloaded an xls doc through roundcube however, and it worked fine. Maybe your version is broke and mine is ok?
I'm using roundcubemail-0.1beta2. Maybe let the list know your version.
Just to be sure however, the limits apply to the _whole_ email message I think, not to individual attachments.
On Wed, 2006-09-27 at 13:41 +0300, Mircea Galut wrote:
The xls files are all under 2M. In fact, one file originaly sent had about 67k and the file identified to save by roundcube had 2k. Maybe it's not about limits.
Thanks,
On Wed, 27 Sep 2006 11:59:22 +0100, Mark Clarkson mark.clarkson@smorg.couk wrote:
You're probably right. I've just downloaded an xls doc through roundcube however, and it worked fine. Maybe your version is broke and mine is ok?
I'm running SVN, updating nightly (I like bugs ;)) Feel free to email me any attachments and I can test it and watch my logs for comments. Also, have you bumped up the debug level in your RC config? It may share something.
P
I'm using roundcubemail-0.1beta2. Maybe let the list know your version.
Just to be sure however, the limits apply to the _whole_ email message I think, not to individual attachments.
On Wed, 2006-09-27 at 13:41 +0300, Mircea Galut wrote:
The xls files are all under 2M. In fact, one file originaly sent had
about
67k and the file identified to save by roundcube had 2k. Maybe it's not about limits.
Thanks,
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
-- http://fak3r.com - you don't have to kick it
Okay, more details now:
As said earlier, only _certain_ messages are affected by this behaviour.
For example message #1, with an xls attachment, has this mime detail in headers: ------------------------------------------ begin to paste --- MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0005_01C6E19C.C0D74900" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
This is a multi-part message in MIME format.
------=_NextPart_000_0005_01C6E19C.C0D74900 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0006_01C6E19C.C0D74900"
------=_NextPart_001_0006_01C6E19C.C0D74900 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
------=_NextPart_001_0006_01C6E19C.C0D74900 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2900.2963" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV> </DIV></BODY></HTML>
------=_NextPart_001_0006_01C6E19C.C0D74900--
------=_NextPart_000_0005_01C6E19C.C0D74900 Content-Type: application/vnd.ms-excel; name="clienti.xls" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="clienti.xls" ----------------------------------------------- enf of paste --- ..folowed by the attached file.
this one is okay, I can download corectly the small attachment.
Now we go the message #2 that has this as mime detail: ------------------------------------------ begin to paste --- MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20060927113419_81775" X-Priority: 3 (Normal) Importance: Normal
------=_20060927113419_81775 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 8bit
------=_20060927113419_81775 Content-Type: application/octet-stream; name="matiz.xls" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="matiz.xls" ------------------------------------------ end of paste --- ..folowed by the attached file.
The file attached has 13,8KB (kilobytes) but when I try to download it via roundcube I get a 1,78KB file named 'mail2' without an extension.
(now I see that) You don't have to be a genius/expert to see that the Content-Type field is different in the two files and that could trick roundcube. They are both the same type of files, but with different mime description.
Now message #3, a wmv file attached: ----------------------------------- begin to paste --- Content-Type: application/octet-stream; name="freakinbrothers.wmv" Content-Transfer-Encoding: base64 Content-Description: pat2111045844 Content-Disposition: attachment; filename="freakinbrothers.wmv" ----------------------------------- end of paste ---
As you could guess, it behaves just like example #2. I get a file named 'mail2.2' but has 2.04MB (megabytes), the corect lenght of the attached file.
Modifying the debug level in the config file has no effect, the log files remain unchanged.
My only conclusion is that MSOE saves the file reading the extension of attachment ignoring the Content-Type field, while RoundCube does not. Who's with me?! :)
Thank you all for replies, jax
P.S. I use roundcubemail-0.1beta2
----- Original Message ----- From: "phil" phil@cryer.us To: "Mark Clarkson" mark.clarkson@smorg.co.uk Cc: "Mircea Galut" mircea.galut@prudentgrup.ro; users@lists.roundcube.net Sent: Wednesday, September 27, 2006 5:33 PM Subject: Re: Fw: Download specific attachments from e-mails
On Wed, 27 Sep 2006 11:59:22 +0100, Mark Clarkson mark.clarkson@smorg.couk wrote:
You're probably right. I've just downloaded an xls doc through roundcube however, and it worked fine. Maybe your version is broke and mine is ok?
I'm running SVN, updating nightly (I like bugs ;)) Feel free to email me any attachments and I can test it and watch my logs for comments. Also, have you bumped up the debug level in your RC config? It may share something.
Mircea.
I see why you originally thought it might be some sort of library problem. I guess roundcube uses some php mime libraries to help it decode mime.
If you would like to send me an email that fails on your roundcube I would be happy to see if I can read it. If my roundcube is happy then great, it's some 'library' problem and fixable. I hope it's that!
Mark.
I received a sample from Mircea that seemed to work fine on my roundcube
had a quick look at the code and roundcube does most of the mail parsing/splitting itself - not using libraries.
I use a snapshot of Debian unstable with just:
ii php5-common 5.1.4-0.1 Common files for packages built from ii php5-sqlite 5.1.4-0.1 SQLite module for php5
so php version 5.1.4. What's your PHP version?
On the good side... my roundcube works! ;-D
On Wed, 2006-09-27 at 13:41 +0300, Mircea Galut wrote:
The xls files are all under 2M. In fact, one file originaly sent had about 67k and the file identified to save by roundcube had 2k. Maybe it's not about limits.
Thanks,
----- Original Message ----- From: "Mark Clarkson" mark.clarkson@smorg.co.uk To: users@lists.roundcube.net Sent: Wednesday, September 27, 2006 1:31 PM Subject: Re: Download specific attachments from e-mails
I had this problem. You'll probably find you'll have problems with all attachments over 2MB. There are limits set in the roundcube config files (db.inc.php was the culprit I think) and for interest also take a look at your php configs.
On Wed, 2006-09-27 at 12:58 +0300, Mircea Galut wrote:
Hi,
I recently discovered that I cannot download corectly certain attachments, like xls or wmv files for example. I tried with different extensions, .doc's or image files work fine.
How does this happen: when opening the message I get the list of attachments where it describes corectly the name and extension of files. When clicked for saving on the local drive, the file name in the save window becomes 'mail' or 'mail2.2' of an unknown type and with a smaller size (I downloaded it with Outlook Express and compared files). That's what happened with the xls file; the wmv file size appeared corectly (about 2M) but the name was still 'mail2.2'.
From reading the sources of Roundcube I think the problem is when it tries to identify the mime parts of the message (mimeDecode.php). Am I correct? Do I need to upgrade some library or specific application?
Thanks a lot, jax