Update reply subject function

This commit is contained in:
RainLoop Team 2014-07-23 19:49:10 +04:00
parent 5a762f5066
commit 2390a4f575
8 changed files with 438 additions and 183 deletions

View file

@ -6954,14 +6954,14 @@ class Actions
$aResult = array('', '');
if (0 < \strlen($sSubject))
{
$sDrop = false;
$bDrop = false;
$aPrefix = array();
$aSuffix = array();
$aParts = \explode(':', $sSubject);
foreach ($aParts as $sPart)
{
if (!$sDrop &&
if (!$bDrop &&
(\preg_match('/^(RE|FWD)$/i', \trim($sPart)) || \preg_match('/^(RE|FWD)[\[\(][\d]+[\]\)]$/i', \trim($sPart))))
{
$aPrefix[] = $sPart;
@ -6969,7 +6969,7 @@ class Actions
else
{
$aSuffix[] = $sPart;
$sDrop = true;
$bDrop = true;
}
}