mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08:00
MessageMimeStream(...$bIndexIsUid...) always true, so remove param
This commit is contained in:
parent
d757102b9e
commit
897c150b1e
4 changed files with 7 additions and 7 deletions
|
@ -219,7 +219,7 @@ class MailClient
|
||||||
* @throws \MailSo\Net\Exceptions\Exception
|
* @throws \MailSo\Net\Exceptions\Exception
|
||||||
* @throws \MailSo\Imap\Exceptions\Exception
|
* @throws \MailSo\Imap\Exceptions\Exception
|
||||||
*/
|
*/
|
||||||
public function MessageMimeStream($mCallback, string $sFolderName, int $iIndex, bool $bIndexIsUid = true, string $sMimeIndex = '') : bool
|
public function MessageMimeStream($mCallback, string $sFolderName, int $iIndex, string $sMimeIndex) : bool
|
||||||
{
|
{
|
||||||
if (!\is_callable($mCallback))
|
if (!\is_callable($mCallback))
|
||||||
{
|
{
|
||||||
|
@ -238,7 +238,7 @@ class MailClient
|
||||||
\strlen($sMimeIndex)
|
\strlen($sMimeIndex)
|
||||||
? FetchType::BODY_PEEK.'['.$sMimeIndex.'.MIME]'
|
? FetchType::BODY_PEEK.'['.$sMimeIndex.'.MIME]'
|
||||||
: FetchType::BODY_HEADER_PEEK),
|
: FetchType::BODY_HEADER_PEEK),
|
||||||
$iIndex, $bIndexIsUid);
|
$iIndex, true);
|
||||||
|
|
||||||
if (\count($aFetchResponse))
|
if (\count($aFetchResponse))
|
||||||
{
|
{
|
||||||
|
@ -296,7 +296,7 @@ class MailClient
|
||||||
$sContentType, $sFileName, $sMimeIndex);
|
$sContentType, $sFileName, $sMimeIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)), $iIndex, $bIndexIsUid);
|
)), $iIndex, true);
|
||||||
|
|
||||||
return ($aFetchResponse && 1 === \count($aFetchResponse));
|
return ($aFetchResponse && 1 === \count($aFetchResponse));
|
||||||
}
|
}
|
||||||
|
|
|
@ -634,7 +634,7 @@ trait Messages
|
||||||
$mResult[$sTempName] = $sAttachment;
|
$mResult[$sTempName] = $sAttachment;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, $sFolder, $iUid, true, $sMimeIndex);
|
}, $sFolder, $iUid, $sMimeIndex);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,7 +25,7 @@ trait Raw
|
||||||
{
|
{
|
||||||
\MailSo\Base\Utils::FpassthruWithTimeLimitReset($rResource);
|
\MailSo\Base\Utils::FpassthruWithTimeLimitReset($rResource);
|
||||||
}
|
}
|
||||||
}, $sFolder, $iUid, true, $sMimeIndex);
|
}, $sFolder, $iUid, $sMimeIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function RawDownload() : bool
|
public function RawDownload() : bool
|
||||||
|
@ -326,7 +326,7 @@ trait Raw
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, $sFolder, $iUid, true, $sMimeIndex);
|
}, $sFolder, $iUid, $sMimeIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function loadImage(string $data, bool $bDetectImageOrientation = true, int $iThumbnailBoxSize = 0) : \SnappyMail\Image
|
private static function loadImage(string $data, bool $bDetectImageOrientation = true, int $iThumbnailBoxSize = 0) : \SnappyMail\Image
|
||||||
|
|
|
@ -520,7 +520,7 @@ trait User
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}, $sFolder, $iUid, true, $sMimeIndex);
|
}, $sFolder, $iUid, $sMimeIndex);
|
||||||
|
|
||||||
$aValues['FileHash'] = '';
|
$aValues['FileHash'] = '';
|
||||||
if ($mResult)
|
if ($mResult)
|
||||||
|
|
Loading…
Reference in a new issue