Re: SquirrelMail Attachments are all viewed in the browser as Text (MIME)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Still no luck... 
 
I have now set error_reporting to E_ALL and also set display_errors to ON, and after another attempt at the attachment, there were no errors shown in the script output and it still displayed the same text.  I then created 3 test pages and pasted the scripts above, and the HTML and Image both displayed correctly, and the text/UTF8 script prompted me to download the php file on the server, but displayed the HTML tags on my client (was that the expected behavior?).  I then created a 4th script as follows:
 
-- PHP HEADER OMITTED --
header('Content-Type: application/pdf');
readfile('./images/license.pdf');
 
The above script behaved properly, and allowed me to download the PDF of the server (which does not have reader) and also allowed me to view the PDF in the browser of the client (which does have reader)...
 
Is it relevant that the UTF8 test script would only download on the server but display properly on the client?  Could there be an encoding or more so a decoding issue on the server that would not be an issue for e-mail clients that do their own decoding?
 
 - Matt
 


 
On Wed, Mar 12, 2008 at 2:54 AM, Tomas Kuliavas <tokul@xxxxxxxxxxxxxxxxxxxxx> wrote:


Matthew Ortner (personal) wrote:
>
> Thanks for the clarification. I am running (Version 1.4.13 - 14 December
> 2007) based on the changes log
> file.
>
> I have also now turned off all plug-ins and the problem persists.&nbsp; As
> for the PHP header error, I checked my IIS server log as well as the
> various windows event logs and didn't see anything PHP related.&nbsp; Is
> there somewhere else to check for PHP specific errors?
>

Set error_reporting to E_ALL and display_errors to on in PHP configuration.
Then errors will be printed in script output.

Create three test scripts.
http://pastebin.ca/939370 - tests html
http://pastebin.ca/939371 - tests text
http://pastebin.ca/939374 - tests image. image file must exists.

Test them and make sure that you can load all three scripts correctly. You
can also modify image loader script to load excel or
application/octet-stream. These scripts are not as complex as SquirrelMail
download headers, but they should allow you to check if webserver is not
breaking downloads.



> I do have the content of the PHP session file from my attempt to view
> the attachment.
>
> ---- START SESSION ----
>
> gettext_php_loaded|
> ... snip ...
>

It is unrelated to your issues, but you could enable gettext extension in
your PHP setup. Then scripts get extra 0.5 MB of memory and store less data
in session.

--
Tomas
--
View this message in context: http://www.nabble.com/SquirrelMail-Attachments-are-all-viewed-in-the-browser-as-Text-%28MIME%29-tp15961517p15998745.html
Sent from the squirrelmail-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users



--
Best Regards,

Matthew Ortner (Personal E-Mail)
mortner@xxxxxxxxx
(941) 806-8483
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux