Roundcube Community Forum

Release Support => Pending Issues => Topic started by: othellobloke on November 08, 2006, 02:01:21 PM

Title: Microsoft Word Attachment Problem
Post by: othellobloke on November 08, 2006, 02:01:21 PM
Hi all..

I installed this on a server, which also has roundcube as part of cpanel - the cpanel roundcube doesn't have this problem.

Attachments attach fine, get sent fine etc... but on trying to open a Word document with a .doc extension, it asks me about the encoding to make the file readable.

They won't open, and I don't know how to fix this. Replace the US English folder in the localization folder, but that hasn't worked.

I also added the application/msword mime type thingy to apps.js but that didn't fix it either.

Got four people who can't view some rather important work stuff.

Any help would be excellent. Thanks.
Title: Re: Microsoft Word Attachment Problem
Post by: tommie on November 08, 2006, 04:11:32 PM
Did you try changing your language in the preferences? That helped for us and we narrowed it down to a corrupt localisation file...
Title: Re: Microsoft Word Attachment Problem
Post by: othellobloke on November 08, 2006, 04:26:36 PM
Just tried that... all languages and it still didn't work.

Anyone/anything else to try?
Title: Re: Microsoft Word Attachment Problem
Post by: othellobloke on November 09, 2006, 10:27:49 PM
I still need help with this.

Anyone PLEASE?
Title: Re: Microsoft Word Attachment Problem
Post by: marin on November 10, 2006, 02:52:10 AM
Hi there,

if you still have problems with corrupt attachments when you're working with EN locale then localization is not the problem.
I don't see any relevance here but what I've done too was to remove the onClick javascript from the attachment list links and just leave a link to the attachment (I put in front a index.php so it works) and target="_blank".
This way all that's done is to point the browser to the doc and let it to all the job - mime handling etc (as far as I understand the situation, this is :) ). You can also try this if you want to, other idea - can you run a diff on your two instalations and see the differences ?
Title: Re: Microsoft Word Attachment Problem
Post by: othellobloke on November 10, 2006, 11:15:21 AM
Hi there...

That didn't work either. Anything/anyone else PLEASE?
Title: Re: Microsoft Word Attachment Problem
Post by: tinus2 on January 30, 2007, 09:00:20 PM
hey othellobloke, have you solved the issue? would be nice to know because I am suffering from the same problem running the latest roundcube v.01 beta2...
Title: Re: Microsoft Word Attachment Problem
Post by: othellobloke on January 31, 2007, 10:22:51 AM
Hi there...

No I didnt' get it solved - which kinda sucked as I had to stop using Roundcube for about twenty different clients and switch to SquirrelMail.
Title: Re: Microsoft Word Attachment Problem
Post by: jpingle on January 31, 2007, 11:44:22 AM
Are only Word documents being corrupted? Or are other attachment types wrong as well? (You might try zip, pdf, xls, etc and report your results)

You might try using an SVN version to see if the problem has been fixed since 0.1 beta 2. Check the SVN forum for a thread about SVN snapshots that you can download if you do not have access to subversion on your server.

There are a couple related bugs in the trouble ticket system:

http://trac.roundcube.net/trac.cgi/ticket/1484094
http://trac.roundcube.net/trac.cgi/ticket/1484024

Neither one have gotten a whole lot of response, probably from a lack of information about the problem in general. It would help out a lot if you could do some more testing and let us know what you have already tried.
Title: Re: Microsoft Word Attachment Problem
Post by: wetjet43 on February 01, 2007, 01:43:07 AM
Strange, I dont have that problem at all... I just CANT SEND ANYTHING! I'm working on it though. What happens if you zip up the .doc file and send it then? Probably goes... ???
Title: Re: Microsoft Word Attachment Problem
Post by: othellobloke on February 01, 2007, 09:41:31 AM
It probably does, but that won't solve the problem with clients who send Word documents alone :-/
Title: Re: Microsoft Word Attachment Problem
Post by: arvoreen on February 01, 2007, 01:55:37 PM
Yeah, attachments are broken, and no one seems to know how to fix it beyond the localization thing.

I'm having the same problem, mostly noticed with .ZIP files.
Title: Re: Microsoft Word Attachment Problem
Post by: daashag on February 01, 2007, 02:04:41 PM
Not that this is any help.  But my attachments work fine. You might try looking at your server configuration.
Title: Re: Microsoft Word Attachment Problem
Post by: jpingle on February 01, 2007, 03:55:02 PM
I also have no problems with attachments, and none of my users have reported any problems either. I've talked to a couple people who have this problem but I haven't been able to narrow down any specific cause.
Title: Re: Microsoft Word Attachment Problem
Post by: arvoreen on February 06, 2007, 01:53:10 PM
Quote from: daashag
Not that this is any help. But my attachments work fine. You might try looking at your server configuration.

Any ideas what configs will cause a zip file to lose some data when saved?

I'd be happy to follow up any leads you may have. :)

A little more info can be found at http://roundcubeforum.net/forum/index.php?topic=1192.0
Title: Re: Microsoft Word Attachment Problem
Post by: gesmit on February 19, 2007, 06:14:50 AM
I got it solved on my server, by adding ob_clean(); in program/steps/mail/get.inc right after the first require_once (on line 22).
Title: Re: Microsoft Word Attachment Problem
Post by: Finchwizard on March 19, 2007, 06:43:33 PM
I've just starting having this Word Document problem with attachments.

If I use Squirrelmail which is the alternative webmail on the system, the attachment is fine, if I download it through RoundCube, it seems to corrupt the document. Not all of it, but enough.

The above thing with inserting the command doesn't work either, that just breaks it completely and won't let me download after that.
Title: Re: Microsoft Word Attachment Problem
Post by: sagentic on March 21, 2007, 03:21:47 AM
Quote from: gesmit
I got it solved on my server, by adding ob_clean(); in program/steps/mail/get.inc right after the first require_once (on line 22).

I tried this too and it broke it. BUT it does bring up a question - where is the file that the require once refers to? require_once('Mail/mimeDecode.php')

I can't find mimeDecode.php anywhere in my installation.
Title: Re: Microsoft Word Attachment Problem
Post by: Finchwizard on March 22, 2007, 05:17:39 AM
I did notice that this was working fine until I got the new package with the HTML fix.

So maybe something has gone wrong there.

If anyone has figured it out yet, would be really good, hugely holding us back at the moment.
Title: Re: Microsoft Word Attachment Problem
Post by: Dingo on January 21, 2008, 06:42:13 AM
Quote from: gesmit
I got it solved on my server, by adding ob_clean(); in program/steps/mail/get.inc right after the first require_once (on line 22).

Thank you. :D i did this and the localisation fix listed here http://roundcubeforum.net/forum/index.php?topic=1192.0 (http://roundcubeforum.net/forum/index.php?topic=1192.0) and it all works now.

Thanks again.

I am using 0.1 rc2 with hmailserver on a windows 2k3 machine.

Title: Microsoft Word Attachment Problem
Post by: nmoudgil on May 03, 2010, 11:14:48 PM
Quote from: marin;3711
Hi there,

if you still have problems with corrupt attachments when you're working with EN locale then localization is not the problem.
I don't see any relevance here but what I've done too was to remove the onClick javascript from the attachment list links and just leave a link to the attachment (I put in front a index.php so it works) and target="_blank".
This way all that's done is to point the browser to the doc and let it to all the job - mime handling etc (as far as I understand the situation, this is :) ). You can also try this if you want to, other idea - can you run a diff on your two instalations and see the differences ?


I want to try this option. But I have no idea where about do I go to change this "onClick" thing. Can anyone show me which file needs to be changed to get this working? I am getting every attachment corrupt. I send a test email to the server and bring it in Roundcube. I click on the attachemtn it's ALWAYS 0 bytes. If I download it's same thing..I am just sick of working on this issue. When I use Outlook retrieve the email from the mail server and open it there...it works perfectly fine...
Title: Microsoft Word Attachment Problem
Post by: midnightz on November 28, 2010, 09:33:10 PM
Quote from: gesmit;5559
I got it solved on my server, by adding ob_clean(); in program/steps/mail/get.inc right after the first require_once (on line 22).

It's work for me in 0.4.2.

------------------------------------------------------
  $MESSAGE = new rcube_message(get_input_value('_uid', RCUBE_INPUT_GET));
}
ob_clean();           <----------------- Line 66
send_nocacheing_headers();

// show part page
if (!empty($_GET['_frame'])) {
------------------------------------------------------
Title: Not working for me
Post by: trapper1204 on November 29, 2010, 02:06:39 PM
My RoundCube Version roundcubemail-trunk-r4267-20101125

Excel files are corrupt when downloaded from RoundCube.
I can log into my server using @mail or usermin and the attached file is downloaded successfully.

I have tried all the fixes in this thread.