mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
Improved parsing thread uids
This commit is contained in:
parent
4664401260
commit
7bba9c17ea
1 changed files with 11 additions and 2 deletions
|
|
@ -1102,7 +1102,7 @@ class ImapClient extends \MailSo\Net\NetClient
|
|||
}
|
||||
else if (\is_array($aValue))
|
||||
{
|
||||
if (1 === count($aValue) && \is_numeric($aValue[0]))
|
||||
if (1 === \count($aValue) && \is_numeric($aValue[0]))
|
||||
{
|
||||
$mResult = (int) $aValue[0];
|
||||
}
|
||||
|
|
@ -1111,11 +1111,20 @@ class ImapClient extends \MailSo\Net\NetClient
|
|||
$mResult = array();
|
||||
foreach ($aValue as $aValueItem)
|
||||
{
|
||||
$mResult[] = $this->validateThreadItem($aValueItem);
|
||||
$mTemp = $this->validateThreadItem($aValueItem);
|
||||
if (false !== $mTemp)
|
||||
{
|
||||
$mResult[] = $mTemp;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (\is_int($mResult) && 0 <= $mResult)
|
||||
{
|
||||
$mResult = false;
|
||||
}
|
||||
|
||||
return $mResult;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue