mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 17:07:03 +03:00
Cleanup MIME header email address parsing
This commit is contained in:
parent
443a6df070
commit
4b8ad326fa
4 changed files with 27 additions and 54 deletions
|
|
@ -806,11 +806,11 @@ trait Messages
|
|||
|
||||
if ($oSmtpClient->Settings->usePhpMail) {
|
||||
if (\MailSo\Base\Utils::FunctionCallable('mail')) {
|
||||
$aToCollection = $oMessage->GetTo();
|
||||
if ($aToCollection && $oFrom) {
|
||||
$oToCollection = $oMessage->GetTo();
|
||||
if ($oToCollection && $oFrom) {
|
||||
$sRawBody = \stream_get_contents($rMessageStream);
|
||||
if (!empty($sRawBody)) {
|
||||
$sMailTo = \trim($aToCollection->ToString(true));
|
||||
$sMailTo = \trim($oToCollection->ToString(true));
|
||||
$sMailSubject = \trim($oMessage->GetSubject());
|
||||
$sMailSubject = \strlen($sMailSubject) ? \MailSo\Base\Utils::EncodeHeaderValue($sMailSubject) : '';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue