Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't show some message in HTML format #2561

Closed
rcubetrac opened this issue Dec 4, 2009 · 23 comments
Closed

don't show some message in HTML format #2561

rcubetrac opened this issue Dec 4, 2009 · 23 comments

Comments

@rcubetrac
Copy link

Reported by lmsilvero on 4 Dec 2009 12:00 UTC as Trac ticket #1486338

The same message is correctly in version 0.1-STABLE and is not in version 0.3.1.
I tried to change the header to send the messages, but do not think the problem is there, since in both versions of RC is shown as the header.
This is the header:

Return-Path: test@domain.tld
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on server.domain.tld
X-Spam-Level: ******
X-Spam-Status: No, score=6.7 required=8.0 tests=AWL,HTML_MESSAGE,
HTML_MIME_NO_HTML_TAG,MIME_HEADER_CTYPE_ONLY,MIME_ HTML_ONLY,NO_DNS_FOR_FROM,
NO_RECEIVED,NO_RELAYS,SUBJ_ALL_CAPS autolearn=no version=3.2.5
X-Original-To: user1@domain.tld
Delivered-To: user1@domain.tld
To: user1@domain.tld
Subject: TESTING
From: SENDER sender@domain.tld
Reply-To: sender@domain.tld
X-Originally_To: sender@domain.tld
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Message-Id: 20091202112501.7F81F1438C@domain.tld
Date: Wed, 2 Dec 2009 08:25:01 -0300 (ART)
X-Virus-Status: No
X-Virus-Checker-Version: clamassassin 1.2.4 with clamscan / ClamAV 0.93.3/10103/Wed Dec 2 00:59:01 2009

In version 0.1-STABLE can see the HTML, but in 0.3.1 version shows the body tags as follows:

TEST

Some HTML messages are not interpreted and also the following characters appear in the header --> and this:

v:* { BEHAVIOR: url(#default#VML) } o:* { BEHAVIOR: url(#default#VML) } w:* { BEHAVIOR: url(#default#VML) } .shape { BEHAVIOR: url(#default#VML) } --> UPSTI02NormalUPSTI02302007-01-03T12:37:00Z2007-01-03T12:38:00Z1215111611.810795CleanClean21falsefals efalseMicrosoftInternetExplorer4 --> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabla normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#400; mso-fareast-language:#400; mso-bidi-language:#400;} -->

I tried to download the latest update svn checkout https://svn.roundcube.net/trunk, but everything was the same.
I created a new installation, with a new DB, but the problem persists.

Migrated-From: http://trac.roundcube.net/ticket/1486338

@rcubetrac
Copy link
Author

Comment by @alecpl on 4 Dec 2009 13:10 UTC

Attach sample message source, please.

@rcubetrac
Copy link
Author

Milestone changed by @alecpl on 4 Dec 2009 13:10 UTC

later => 0.4-beta

@rcubetrac
Copy link
Author

Comment by @alecpl on 11 Dec 2009 19:48 UTC

Probably fixed in f96ffde. Works for me. BTW, message contains malformed HTML - nested comments.

@rcubetrac
Copy link
Author

Status changed by @alecpl on 11 Dec 2009 19:48 UTC

new => closed

@rcubetrac
Copy link
Author

Comment by borigoto on 8 Jan 2010 14:10 UTC

Hi! First, sorry, my english is very bad...

I have the same error, but, not exist comments in my message.
See the source code:

Return-Path: <anonymous@domain.tld>
Delivered-To: user1@domain.tld
Received: (qmail 303 invoked by uid 1208); 8 Jan 2010 12:49:03 -0000
Date: 8 Jan 2010 12:49:03 -0000
Message-ID: <20100108124903.302.qmail@domain.tdl>
To: user1@domain.tld
Subject: XXXXXXXXXX
From: user1@domain.tld
Content-type: text/html; charset=utf-8


<html>
  <body>
    <b>Nome:</b> name<br />
    <b>E-mail:</b> user1@domain.tld<br />
    <b>Telefone:</b> (11) 12345678<br />
    <b>Assunto:</b> assunto<br />
    <b>Mensagem:</b> message<br />
  </body>
</html>

I'm using 0.3.1 instaled from zero.

In 0.2 version, this message is show ok!

[]'S

@rcubetrac
Copy link
Author

Status changed by borigoto on 8 Jan 2010 14:10 UTC

closed => reopened

@rcubetrac
Copy link
Author

Comment by @alecpl on 8 Jan 2010 14:22 UTC

Works for me with svn-trunk version.

@rcubetrac
Copy link
Author

Status changed by @alecpl on 8 Jan 2010 14:22 UTC

reopened => closed

@rcubetrac
Copy link
Author

Comment by borigoto on 8 Jan 2010 15:00 UTC

Hi Alec!

I'm create new installation from:

svn checkout https://svn.roundcube.net/trunk

The sign is: RoundCube Webmail/0.3-trunk, but, the problem persists...

What is a file used to show messages? I look but not sure exactly file..

[]'s

@rcubetrac
Copy link
Author

Status changed by borigoto on 8 Jan 2010 15:00 UTC

closed => reopened

@rcubetrac
Copy link
Author

Comment by @alecpl on 8 Jan 2010 20:16 UTC

what PHP version/OS, what browser? check Roundcube logs.

@rcubetrac
Copy link
Author

Comment by borigoto on 9 Jan 2010 13:07 UTC

Hi Alec,

I use PHP:

~# php -v
PHP 5.2.6-1+lenny4 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 22 2009 02:38:03)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

And OS is:
~# uname -a
Linux lm1-vgt 2.6.26-2-686-bigmem #1 SMP Wed Nov 4 21:12:12 UTC 2009 i686 GNU/Linux

~# cat /etc/issue
Debian GNU/Linux 5.0 \n \l

100% stable.

Again, old version of RoundCube, show the message correctly.

I tested version from SVN and 0.3.1 in other 2 machines, Debian SID and Debian Testing, ever installing from zero, and, same problem :(

I using for tests IE8, Chrome and Firefox 3.5 from Windows, and Chrome 4.0.266.0, Iceweasel 3.5.5, Opera 10.10 from Linux..

This error not happen for all message.
This example message is create by php mail function.
HTML messages created by Thunderbird, OE and RoundCube, are displayed correctly..

[]'s and TFA!

@rcubetrac
Copy link
Author

Comment by borigoto on 9 Jan 2010 13:20 UTC

Alec

I forgot, use the logs in syslog and saw no errors in my tests

[] s

@rcubetrac
Copy link
Author

Comment by @alecpl on 9 Jan 2010 18:03 UTC

What about Roundcube /logs dir? What IMAP server? Enable imap_debug and show log.

@rcubetrac
Copy link
Author

Comment by borigoto on 10 Jan 2010 14:48 UTC

Hi Alec,

See the attach!
Those files are created from other zero instalation at Debian Sid, and logs contains only one access at system and the message on error.

Again, sorry my english..

[]'s and TFA

@rcubetrac
Copy link
Author

Comment by @alecpl on 10 Jan 2010 18:38 UTC

So, now I see the message is malformed. Contains "Content-type:" instead of "Content-Type:" and that's why your server returs it as text/plain in BODYSTRUCTURE. So, will not fix this.

@rcubetrac
Copy link
Author

Status changed by @alecpl on 10 Jan 2010 18:38 UTC

reopened => closed

@rcubetrac
Copy link
Author

Comment by borigoto on 10 Jan 2010 21:37 UTC

Mostrar romanizao
I understand ... but I do not believe that is the problem.
First, because as I said before, in the earlier version works correctly, second because I created a new message with the Type and still not being displayed as HTML ..

I did a grep-i in the code, content-type and found several places that the system uses the same type tiny.

Below, the source code itself roundcube showed me:

Return-Path: <anonymous@domain.tdl>
Delivered-To: tiago@domain.tdl
Received: (qmail 303 invoked by uid 1208); 8 Jan 2010 12:49:03 -0000
Date: 8 Jan 2010 12:49:03 -0000
Message-ID: <20100108124903.302.qmail@domain.tdl>
To: tiago@domain.tdl
Subject: Contato - Vila Doce
From: tiago@domain.tdl
Content-Type: text/html; charset=utf-8


<html>
  <body>
    <b>Nome:</b> name<br />
    <b>E-mail:</b> tiago@domain.tdl<br />
    <b>Telefone:</b> (11) 12345678<br />
    <b>Assunto:</b> assunto<br />
    <b>Mensagem:</b> message<br />
  </body>
</html>

Sorry for insistence..

Have another idea ??

How can help more ??

[]'s

@rcubetrac
Copy link
Author

Status changed by borigoto on 10 Jan 2010 21:37 UTC

closed => reopened

@rcubetrac
Copy link
Author

Comment by borigoto on 10 Jan 2010 22:23 UTC

Alec,

this is the code that creates the message:

mail($email,$subject,"

<html>

  <body>

    <b>Nome:</b> $name<br />

    <b>E-mail:</b> $sender<br />

    <b>Telefone:</b> ($ddd) $tel<br />

    <b>Assunto:</b> $assunto<br />

    <b>Mensagem:</b> $message<br />

  </body>

</html>","From: $sender \n" . "Content-Type: text/html; charset=utf-8")

[]'s

@rcubetrac
Copy link
Author

Comment by @alecpl on 11 Jan 2010 07:23 UTC

More important is what returns your server in BODYSTRUCTIRE, if it returns text/plain for such message we can do nothing about that. Please open a new ticket if you want, because your problem is different.

@rcubetrac
Copy link
Author

Status changed by @alecpl on 11 Jan 2010 07:23 UTC

reopened => closed

@rcubetrac
Copy link
Author

Comment by borigoto on 11 Jan 2010 08:42 UTC

Hi alec.

Thanks for help-me.

I'm try two other versions, 0.3-stable (1 minus i user) and trunk-[from nightly.roundcube.net, and, working good....

Realy i dont understand because only 3.1 not work, but, no problem..
I change version from my server.

Again, thanks for your help!

's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant