[SM-USERS] HTML email displayed as source

2011-01-05 Thread Alex
Hi,
I have an older installation of squirremail (version 1.4.2, I believe)
and when viewing a particular email, it displays the actual HTML code
and not as an HTML email. This same email displays fine in
Thunderbird.

Is this version just too old to properly display it? Is there anything
that can be done to have SM display it properly?

The HTML just appears in the body of the email, and does not properly
seem to be indicated with a content type. I've stripped out the
confidential information. Hopefully this is enough to show the
problem.

From: m...@remotesite.com
To: u...@site.com
Subject: User subject
Varbuf: ^EDLV^6451677
Content-type: text/html
Status: RO
X-Status:
X-Keywords:
X-UID: 1527





Notification










 
 
 


 
 
 


Thanks,
Alex

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] HTML email displayed as source

2011-01-05 Thread Tomas Kuliavas


Alex-325 wrote:
> 
> Hi,
> I have an older installation of squirremail (version 1.4.2, I believe)
> and when viewing a particular email, it displays the actual HTML code
> and not as an HTML email. This same email displays fine in
> Thunderbird.
> 
> Is this version just too old to properly display it? Is there anything
> that can be done to have SM display it properly?
> 
enable view_as_html plugin which (I think) has workarounds for this rfc2045
violation or contact email sender and ask them to set MIME-Version header in
their emails. Refer them to rfc 2045 chapter 4.
http://www.faqs.org/rfcs/rfc2045.html

-- 
Tomas
-- 
View this message in context: 
http://old.nabble.com/HTML-email-displayed-as-source-tp30597983p30598130.html
Sent from the squirrelmail-users mailing list archive at Nabble.com.


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] php-5.3.4 causes error messages

2011-01-05 Thread Grant
>> After upgrading to php-5.3.4 on Gentoo, I'm getting some error
>> messages although functionality seems to be intact:
>>
>> PHP Strict Standards:  Declaration of Deliver_IMAP::send_mail() should
>> be compatible with that of Deliver::send_mail() in
>> /path/to/squirrelmail/class/deliver/Deliver_IMAP.class.php on line 82
>>
>> PHP Strict Standards:  Creating default object from empty value in
>> /path/to/squirrelmail/class/mime/Message.class.php on line 367
>>
>> Strict Standards: Non-static method Message::parseStructure() should
>> not be called statically in /path/to/squirrelmail/functions/mime.php
>> on line 36
>>
>> Strict Standards: Non-static method Message::parseBodyStructure()
>> should not be called statically in
>> /path/to/squirrelmail/class/mime/Message.class.php on line 296
>>
>> Is this a known problem between squirrelmail-1.4.21 and php-5.3.4?
>>
> Don't enable E_STRICT on SquirrelMail scripts. PHP E_STRICT recommendations
> are not backwards compatible and trying to deal with these warnings can
> increase PHP version requirements or suppress other more serious error
> messages.
>
> SquirrelMail scripts are written to run in PHP 5.2 and older E_ALL error
> reporting level. Set error reporting to 6143 or disable E_STRICT.
>
> --
> Tomas

Thanks Tomas.  Gentoo changed some of their behavior with regard to
PHP and I'm still figuring it out.  It looks like the installed
php.ini for php-5.3.4 is a "development version".  I switched to:

error_reporting = E_ALL & ~E_DEPRECATED

- Grant

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] HTML email displayed as source

2011-01-05 Thread Noel Butler
On Wed, 2011-01-05 at 11:58 -0500, Alex wrote:

> Hi,
> I have an older installation of squirremail (version 1.4.2, I believe)
> and when viewing a particular email, it displays the actual HTML code
> and not as an HTML email. This same email displays fine in
> Thunderbird.
> 


That version is so very old, you are subject to many many many exploits,
some, very serious.


> Is this version just too old to properly display it? Is there anything
> that can be done to have SM display it properly?
> 


Upgrade to a secure version, ie, the latest version, being 1.4.21




signature.asc
Description: This is a digitally signed message part
--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Re: [SM-USERS] php-5.3.4 causes error messages

2011-01-05 Thread Noel Butler
On Wed, 2011-01-05 at 14:40 -0800, Grant wrote:

> >> After upgrading to php-5.3.4 on Gentoo, I'm getting some error
> >> messages although functionality seems to be intact:



> Thanks Tomas.  Gentoo changed some of their behavior with regard to
> PHP and I'm still figuring it out.  It looks like the installed
> php.ini for php-5.3.4 is a "development version".  I switched to:
> 
> error_reporting = E_ALL & ~E_DEPRECATED
> 


The bigger question to ask gentoo is why are they altering your php.ini
on an "upgrade" in the first place.



signature.asc
Description: This is a digitally signed message part
--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Re: [SM-USERS] HTML email displayed as source

2011-01-05 Thread Alex
Hi,

> I have an older installation of squirremail (version 1.4.2, I believe)
> and when viewing a particular email, it displays the actual HTML code
> and not as an HTML email. This same email displays fine in
> Thunderbird.
>
> That version is so very old, you are subject to many many many exploits,
> some, very serious.

Yes, that's for sure. I've been trying for months to get them to
upgrade, and it finally looks like they are going to in the near
future.

It does look like the view_html plugin was the cause, but it will have
to wait for 1.4.21 because it requires 1.4.10 or above. I assume it's
already installed in the default 1.4.21?

Thanks,
Alex

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] HTML email displayed as source

2011-01-05 Thread Tomas Kuliavas


Alex-325 wrote:
> 
> It does look like the view_html plugin was the cause, but it will have
> to wait for 1.4.21 because it requires 1.4.10 or above. I assume it's
> already installed in the default 1.4.21?
> 
I haven't said "remove view_as_html plugin". I've asked to add it. Your
problem is not caused by some SquirrelMail plugin. view_as_html plugin does
not cause your problem. It changes SquirrelMail code in a way, which in some
cases ignores message body format provided by IMAP server and uses
information from Content-Type header. 

Your problem was caused by software which does not follow MIME formatting
standards. If MIME-Version header is missing, neither SquirrelMail nor
Thunderbird should display email in html. Content-Type: text/html header
should be ignored, if MIME-Version header is not set. SquirrelMail gets
message structure from IMAP server and your IMAP server correctly tags
message as plain text. Thunderbird for some reason ignores MIME
specification and displays plain text message as html.

view_as_html plugin is not in default SquirrelMail package. SquirrelMail
1.4.10 is required only by 3.8 version. You are free to use older versions.

-- 
View this message in context: 
http://old.nabble.com/HTML-email-displayed-as-source-tp30597983p30602760.html
Sent from the squirrelmail-users mailing list archive at Nabble.com.


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users