-
Notifications
You must be signed in to change notification settings - Fork 60
0005120: Wrong quoted-printable encoding on text/plain part of sending email #2617
Comments
Related to #2532 |
Comment posted by pschuele on 19 Dec 2011 12:51 i could not reproduce this error. i got this email:--=_3c92a79380340f26bdf630b56471be94 =C3=98=C2=B3=C3=99?=C3=98=C2=A7=C3=99?=0A=0A--=0ASent with love from the= --=_3c92a79380340f26bdf630b56471be94 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; char= --=_3c92a79380340f26bdf630b56471be94-- -- did you see something unusual in the logfile? |
Comment posted by afshin on 20 Dec 2011 06:44 -- did you see something unusual in the logfile? |
Comment posted by pschuele on 20 Dec 2011 08:34 just sent you an email. did you try it with the current service release 2011-05-5, too? |
Comment posted by afshin on 20 Dec 2011 08:45 No I'm on 2011-05-4 ! |
Comment posted by pschuele on 20 Dec 2011 09:00 i think this might be related to #4950. please update to 2011-05-5 and try again. |
Comment posted by afshin on 20 Dec 2011 10:12 Is there any update instructions ? specially on database schema, I've never updated tine20 ! |
Comment posted by afshin on 20 Dec 2011 10:19 Ok! I found it. |
Comment posted by pschuele on 20 Dec 2011 10:46 good. update from 2011-05-4 to -5 should be uncomplicated. |
Comment posted by afshin on 20 Dec 2011 11:16 Sorry, but the issue still there on (2011-05-5) ! |
Comment posted by pschuele on 20 Dec 2011 11:52 ok, then we have to switch to the serious debugging mode ... ;) please turn on TRACE-debugging (loglevel 8) and send me the log of the sending of your test message. or attach the log to this bugreport, whatever you like more. |
Comment posted by afshin on 20 Dec 2011 12:02 It's done. |
Comment posted by pschuele on 20 Dec 2011 13:32 thanks. but the log still needs more details. please replace the file Felamimail/Controller/Message/Send.php with this one: and send the test message again + attach the logfile. |
Comment posted by afshin on 21 Dec 2011 06:34 I've uploaded the new log. |
Comment posted by pschuele on 21 Dec 2011 09:44 ok, we are getting closer ... please use this file (replace Felamimail/Model/Message.php) and show me the logs :) |
Comment posted by afshin on 21 Dec 2011 10:13 done! |
Comment posted by pschuele on 21 Dec 2011 12:12 ok, looks like the problem is in the DOMDocument::loadHTML function. somehow it does not get the charset utf8 encoding correctly on your system. which php version are you using? do you have anything unusual in your setup? i committed another version of Felamimail/Model/Message.php with further improved logging, please try this one: |
Comment posted by afshin on 21 Dec 2011 12:27 PHP 5.3.8 (cli) (built: Aug 29 2011 21:03:55) I installed it from webtatic repository on CentOS 5.6 x86_64 |
Comment posted by pschuele on 21 Dec 2011 14:35 i'm quite sure now that DOMDocument::loadHTML can't handle utf-8 strings with right-to-left mark. perhaps we found a php bug ... ;) what would happen if we removed the right-to-left mark? just reading (and trying to understand): http://www.unicode.org/reports/tr9/ |
Comment posted by pschuele on 21 Dec 2011 14:41 let's try it with removed marks: |
Comment posted by afshin on 21 Dec 2011 16:07 thank you for issue explanation, sorry but i'm not be able to apply the change till Saturday! I'll inform you as soon as possible. BEST |
Comment posted by pschuele on 21 Dec 2011 16:39 no problem. thanks for your quick feedback! i'll be back on this issue in the next week. |
Comment posted by afshin on 24 Dec 2011 06:39 done (no change ) & Merry Christmas to you, your family and METAWAYS guys :) |
Comment posted by pschuele on 25 Dec 2011 12:56 i added some more trace logging and try to remove some more utf-8 control chars: http://git.tine20.org/git?p=tine20;a=blob_plain;f=tine20/Felamimail/Model/Message.php;hb=fcc8058ff939f7bdaa92121395e519596efa22c2 merry christmas to you, too :) |
Comment posted by afshin on 26 Dec 2011 06:20 It's done . |
Comment posted by pschuele on 27 Dec 2011 09:53 hi afshin, now i tried a different approach ... please try again with this one: |
Comment posted by afshin on 27 Dec 2011 13:13 Good Job ! Finally ;) |
Comment posted by pschuele on 27 Dec 2011 14:13 yeah! finally it works :) |
Reported by afshin on 22 Nov 2011 10:14
Version: Maischa (2011-05-4)
This is part of an email message. As can be seen encoding of text/plain body is different from encoding of text/html body of message. decoding of body shows that the encoding of text/plain is wrong.
--=_cf57a1099ab54c27b9ebea25462c381b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
hello =C3=98=C2=B3=C3=99=C2=84=C3=98=C2=A7=C3=99=C2=85
--=20
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--=_cf57a1099ab54c27b9ebea25462c381b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8"><title></title><style type=3D"text/css">.felamimail-body-blockquo=
te {margin: 5px 10px 0 3px;padding-left: 10px;border-left: 2px solid #8=
8;} </style></head><body>hello =D8=B3=D9=84=D8=A7=D9=85<br><span id=3D"fela=
mimail-body-signature"><a href=3D"http://tine20.org"></a></span><br />--=20
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href=3D"http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.
</body></html>
--=_cf57a1099ab54c27b9ebea25462c381b--
Additional information: http://www.tine20.org/forum/viewtopic.php?f=8&t=9898
The text was updated successfully, but these errors were encountered: