Display BCC field in sent mail.

This commit is contained in:
RainLoop Team 2013-12-09 14:38:13 +04:00
parent 4a153a59c1
commit f7106f375c
5 changed files with 114 additions and 17 deletions

View file

@ -19,6 +19,11 @@ class Binary
*/
private static $aStreams = array();
/**
* @var array
*/
private static $aRememberStreams = array();
/**
* @var resource
*/
@ -148,6 +153,35 @@ class Binary
return \MailSo\Base\Utils::ConvertEncoding($sEncodedString, $sFromEncoding, $sToEncoding);
}
/**
* @param resource $rStream
*
* @return bool
*/
public static function IsStreamRemembed($rStream)
{
foreach (self::$aRememberStreams as $rRem)
{
if ($rStream === $rRem)
{
return true;
}
}
return false;
}
/**
* @param resource $rStream
*/
public static function RememberStream($rStream)
{
if (!self::IsStreamRemembed($rStream))
{
self::$aRememberStreams[] = $rStream;
}
}
/**
* @param resource $rStream
* @param string $sUtilsDecodeOrEncodeFunctionName = null