mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +03:00
MailSo fixes
This commit is contained in:
parent
860bf3be74
commit
eb11eaa096
4 changed files with 83 additions and 6 deletions
|
|
@ -64,4 +64,32 @@ class Response
|
|||
{
|
||||
return new self();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $aList
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function recToLine($aList)
|
||||
{
|
||||
$aResult = array();
|
||||
if (\is_array($aList))
|
||||
{
|
||||
foreach ($aList as $mItem)
|
||||
{
|
||||
$aResult[] = \is_array($mItem) ? '('.$this->recToLine($mItem).')' : (string) $mItem;
|
||||
}
|
||||
}
|
||||
|
||||
return \implode(' ', $aResult);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function ToLine()
|
||||
{
|
||||
return $this->recToLine($this->ResponseList);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue