mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03:00
Resolve #799 due to wrong implementation of RFC 8474
This commit is contained in:
parent
c522daf866
commit
3f2d193bf6
1 changed files with 6 additions and 5 deletions
|
|
@ -131,11 +131,12 @@ class Message implements \JsonSerializable
|
||||||
$oFetchResponse->GetFetchValue(FetchType::INTERNALDATE)
|
$oFetchResponse->GetFetchValue(FetchType::INTERNALDATE)
|
||||||
);
|
);
|
||||||
|
|
||||||
$oMessage->sEmailId = $oFetchResponse->GetFetchValue(FetchType::EMAILID)
|
// https://www.rfc-editor.org/rfc/rfc8474
|
||||||
// ?: $oFetchResponse->GetFetchValue('X-GUID')
|
$aEmailId = $oFetchResponse->GetFetchValue(FetchType::EMAILID);
|
||||||
?: $oFetchResponse->GetFetchValue('X-GM-MSGID');
|
$oMessage->sEmailId = $aEmailId ? $aEmailId[0] : $oFetchResponse->GetFetchValue('X-GM-MSGID');
|
||||||
$oMessage->sThreadId = $oFetchResponse->GetFetchValue(FetchType::THREADID)
|
// $oMessage->sEmailId = $oMessage->sEmailId ?: $oFetchResponse->GetFetchValue('X-GUID');
|
||||||
?: $oFetchResponse->GetFetchValue('X-GM-THRID');
|
$aThreadId = $oFetchResponse->GetFetchValue(FetchType::THREADID);
|
||||||
|
$oMessage->sThreadId = $aThreadId ? $aThreadId[0] : $oFetchResponse->GetFetchValue('X-GM-THRID');
|
||||||
|
|
||||||
$sCharset = $oBodyStructure ? Utils::NormalizeCharset($oBodyStructure->SearchCharset()) : '';
|
$sCharset = $oBodyStructure ? Utils::NormalizeCharset($oBodyStructure->SearchCharset()) : '';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue