Bug #19627 [Fbk->NoF]: accented letters in email body
| From: | till@php.net | Date: | Sat, 03 Nov 2012 20:00:52 +0000 |
| Subject: | Bug #19627 [Fbk->NoF]: accented letters in email body | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9286@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19627&edit=1
ID: 19627
Updated by: till@php.net
Reported By: mario at mesiti dot it
Summary: accented letters in email body
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Mail_Queue
Operating System: CentOs 6
Package Version: 1.2.7
PHP Version: 5.3.3
Assigned To: till
Roadmap Versions:
New Comment:
-Status: Feedback
+Status: No Feedback
Previous Comments:
------------------------------------------------------------------------
[2012-10-01 16:03:29] till
A test case (with phpunit) would be helpful. I have no time to do this
myself, right
now.
E.g. complete PHP code how you build up the message, etc..
------------------------------------------------------------------------
[2012-10-01 15:19:17] mariomesiti
Well, I am using Mail_Queue for a production site that should go online
in 15days. I made some quick fixes to solve this problem and I am not
willing to revert the files back to the original versions.
However php reported the issue this way:
unserialize(): Error at offset 2 of 733 bytes in
/usr/share/pear/Mail/Queue/Container/mdb2.php on line 261
offset was variable, depending obviously on the message.
Also I can paste here a body value taken from mail_queue database table
that raised the error:
s:14:"èèèà à à à ";
or
s:727:"Gentile utente, ecco di seguito riportati i livelli di vigilanza
e di allerta [modificare]
Allerta Idrogeologica Livello 2. Innalzamento dei livelli negli alvei
dei corsi d'acqua in grado di provocare FUORIUSCITA delle acque, ROTTURA
degli argini, SORMONTO di ponti e passerelle, INONDAZIONE delle aree
circostanti e dei centri abitati e probabile innesco di FRANE e
SMOTTAMENTI dei versanti in maniera DIFFUSA ed ESTESA; ELEVATA
pericolosità per l'incolumità delle persone e beni.
Allerta Nivologica Livello 1. Nevicate moderate, ovvero inferiori ai 10
cm a livello del mare o tra i 20 e i 50 cm a quote collinari con
possibili gelate e disagi per la viabilità .
Per qualsiasi informazione in merito ... [modificare]
";
Hope it helped.
Mario
------------------------------------------------------------------------
[2012-10-01 14:46:45] till
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: till
Do you mind adding a test case for this so we can see the failure?
------------------------------------------------------------------------
[2012-10-01 10:23:59] mariomesiti
Description:
------------
Using accented letters in email body causes unserialize not to work
properly. As a result the whole email body is empty.
I solved the problem by removing the "serialize"/"unserialize" mechanism
for the body part (is there a reason to keep it?). Anyhow I feel this
problem requires a deeper analysis.
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19627&edit=1