<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body smarttemplateinserted="true" text="#000000" bgcolor="#FFFFFF">
Hello vtiger Team,<br>
<br>
There is an unnecessary htmlentities encoding in the vtiger 6 email
from-name.<br>
<br>
The issue can be easy to reproduce.<br>
Please use the vtiger 6 user's Firstname or Lastname field some of
the Central European characters e.g. öüóőúéáűí ÖÜÓŐÚÉÁŰÍ<br>
<br>
The result will be the next:<br>
<img alt="" src="cid:part1.05010709.00040004@gmail.com" height="374"
width="1302"><br>
<br>
The arriving email header is the following:<br>
<pre>From - Mon Apr 14 12:58:48 2014
X-Account-Key: account1
X-UIDL: GmailId1455fe34fa8d38ce
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:
Delivered-To: <a class="moz-txt-link-abbreviated" href="mailto:hxxxxxxxk@gmail.com">hxxxxxxxk@gmail.com</a>
Received: by 10.229.165.203 with SMTP id j11csp113984qcy;
Mon, 14 Apr 2014 03:58:24 -0700 (PDT)
Date: Mon, 14 Apr 2014 10:58:22 +0000
To: <a class="moz-txt-link-abbreviated" href="mailto:hxxxxxxxxxk@gmail.com">hxxxxxxxxxk@gmail.com</a>
<big><b><font color="#cc0000">From: =?UTF-8?Q?=26ouml=3B=26uuml=3B=26oacute=3B=C5=91=26uacute=3B=26eacute=3B?=
=?UTF-8?Q?=26aacute=3B=C5=B1=26iacute=3B_Administrator_=26Ouml=3B=26Uuml?=
=?UTF-8?Q?=3B=26Oacute=3B=C5=90=26Uacute=3B=26Eacute=3B=26Aacute=3B?=
=?UTF-8?Q?=C5=B0=26Iacute=3B?= <a class="moz-txt-link-rfc2396E" href="mailto:axxxxx@xxxxxxx.hu"><axxxxx@xxxxxxx.hu></a></font></b></big>
Reply-To: <a class="moz-txt-link-abbreviated" href="mailto:xxxxxx@xxxxxx.hu">xxxxxx@xxxxxx.hu</a>
Subject: =?UTF-8?B?Mi4gw4lrZXpldCB0ZXN6dDogw7bDvMOzxZHDusOpw6HFscOtIMOWw5zDkw==?=
=?UTF-8?B?xZDDmsOJw4HFsMON?=
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:fbc6a5acc86da7ea7ffb6b88862eea22@xxxxxxxxx.hu"><fbc6a5acc86da7ea7ffb6b88862eea22@xxxxxxxxx.hu></a>
X-Priority: 3
X-Mailer: PHPMailer 5.2.6 (<a class="moz-txt-link-freetext" href="https://github.com/PHPMailer/PHPMailer/">https://github.com/PHPMailer/PHPMailer/</a>)
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - xxxxxxx.eu
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - aryan.hu
X-Get-Message-Sender-Via: xxxxxxx.eu: authenticated_id: <a class="moz-txt-link-abbreviated" href="mailto:xxxxx@xxxxx.hu">xxxxx@xxxxx.hu</a>
<img src='<a class="moz-txt-link-freetext" href="http://cf.aryan.hu//modules/Emails/actions/TrackAccess.php?record=4866&parentId=4861&applicationKey=10b0a78393cc7a398cbbf6f59d731e51">http://cf.aryan.hu//modules/Emails/actions/TrackAccess.php?record=4866&parentId=4861&applicationKey=10b0a78393cc7a398cbbf6f59d731e51</a>' alt='' width='1' height='1'>
<p>
Ide is beteszünk egy ékezet tesztet:</p>
<p>
öüóőúéáűí ÖÜÓŐÚÉÁŰÍ</p>
<p>
Üdv: István</p>
</pre>
----------------------------------<br>
As you see the UTF-8 encoding is automatic if the from-name contains
any of characters to encode.<br>
But if the from-name is already encoded to HTML entities the double
coding will result he pictures shown above.<br>
<br>
Unfortunately this wrong encoded from-name will put the email to the
spam box.<br>
<br>
<div class="moz-signature">-- <br>
Regards:<br>
<br>
<b>Holbok István</b><br>
<br>
+3670-342-0900<br>
<b>e-mail:</b> <a class="moz-txt-link-abbreviated" href="mailto:holbok@gmail.com">holbok@gmail.com</a><br>
<b>SkyPe:</b> holboki<br>
<br>
</div>
</body>
</html>