Author: leithoff
New Revision: 54993
URL: http://svn.stylite.de/viewvc/egroupware?rev=54993&view=rev
Log:
getHeaders: make sure mail-addresses are real emailaddresses one by one in the returned array as expected
Modified:
trunk/emailadmin/inc/class.emailadmin_imapbase.inc.php
— trunk/emailadmin/inc/class.emailadmin_imapbase.inc.php (original)
+++ trunk/emailadmin/inc/class.emailadmin_imapbase.inc.php Fri Feb 12 15:38:06 2016
@@ -1454,6 +1454,8 @@
$remember=null;
foreach ($headerObject[$key] as $k => $ad)
{
-
//the commented section below IS a simplified version of the section "make sure ..."
-
/*
if (stripos($ad,'@')===false)
{
$remember=$k;
@@ -1463,9 +1465,16 @@
$address[] = (!is_null($remember)?$headerObject[$key][$remember].’ ‘:’’).$ad;
$remember=null;
}
-
*/
-
// make sure addresses are real emailaddresses one by one in the array as expected
-
$rfcAddr = self::parseAddressList($ad); // does some fixing of known problems too
-
foreach ($rfcAddr as $_rfcAddr)
-
{
-
if (!$_rfcAddr->valid) continue; // skip. not a valid address
-
$address[] = imap_rfc822_write_address($_rfcAddr->mailbox,$_rfcAddr->host,$_rfcAddr->personal);
-
}
}
$headerObject[$key] = $address;
@@ -1593,7 +1602,6 @@
if(is_array($headerObject[‘FROM’]) && $headerObject[‘FROM’][0]) {
$retValue[‘header’][$sortOrder[$uid]][‘sender_address’] = self::decode_header($headerObject[‘FROM’][0],true);
}
if(is_array($headerObject['TO']) && $headerObject['TO'][0]) {
$retValue['header'][$sortOrder[$uid]]['to_address'] = self::decode_header($headerObject['TO'][0],true);
if (count($headerObject['TO'])>1)
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs