mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
Update reply subject function
This commit is contained in:
parent
5a762f5066
commit
2390a4f575
8 changed files with 438 additions and 183 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue