[Vtigercrm-developers] Mail Manager : converting subject and "from" params for messages
Rietz, Artur
a.rietz at opensaas.pl
Thu Apr 18 11:48:59 UTC 2013
Hello,
I've a few issues with displaying subjects and "from" in MailManager module
*Description of issue:*
"From"
for example, in gmail I see "Firstname, Lastname"
in Mail Manager i see: Lastname ( only it )
"Subject"
sometimes it is cutting of one word from string without any special chars
like:
"We have special offer for you" -> in mail manager we got "have special
offer for you"
or "position for only 15,- zł" in mail manager we got "zł"
*Solution ( mine ;) )*
in file: modules/MailManager/src/models/Message.php
I changed functions: setSubject, setFrom
You used: @self::__mime_decode, which is causing this issues.
I changed it to:
mb_internal_encoding("UTF-8");
$mailFrom = mb_decode_mimeheader( $mailFrom );
$mailFrom =quoted_printable_decode( $mailFrom );
*My questions:*
Is it correct solution in your opinion ?
Do you have any idea why mime_decode may caused this problems ?
Do you have any other idea how to fix it ?
Regards, Rietz Artur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130418/b3b9de52/attachment.html>
More information about the vtigercrm-developers
mailing list