mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
Display BCC field in sent mail.
This commit is contained in:
parent
4a153a59c1
commit
f7106f375c
5 changed files with 114 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue