Remove date_from_headers from application.ini and internalTimestamp

This commit is contained in:
the-djmaze 2024-04-23 17:35:16 +02:00
parent 2656d362d6
commit aaae0a314c
4 changed files with 0 additions and 6 deletions

View file

@ -81,7 +81,6 @@ export class MessageModel extends AbstractModel {
// autocrypt: ko.observableArray(),
hasVirus: null, // or boolean when scanned
priority: 3, // Normal
internalTimestamp: 0,
senderEmailsString: '',
senderClearEmailsString: '',
isSpam: false,

View file

@ -507,7 +507,6 @@ class Message implements \JsonSerializable
'spamResult' => $this->sSpamResult,
'isSpam' => $this->bIsSpam,
'dateTimestamp' => $this->iHeaderTimeStampInUTC ?: $this->iInternalTimeStampInUTC,
'internalTimestamp' => $this->iInternalTimeStampInUTC,
// \MailSo\Mime\EmailCollection
'from' => $this->oFrom,

View file

@ -93,9 +93,6 @@ trait Response
if ($mResponse instanceof \MailSo\Mail\Message) {
$aResult = $mResponse->jsonSerialize();
if (!$this->Config()->Get('labs', 'date_from_headers', true) && $aResult['internalTimestamp']) {
$aResult['dateTimestamp'] = $aResult['internalTimestamp'];
}
if (!$sParent && \strlen($aResult['readReceipt']) && !\in_array('$mdnsent', $aResult['flags']) && !\in_array('\\answered', $aResult['flags'])) {
$oAccount = $this->getAccountFromToken();
if ('1' === $this->Cacher($oAccount)->Get(\RainLoop\KeyPathHelper::ReadReceiptCache($oAccount->Email(), $aResult['folder'], $aResult['uid']), '0')) {

View file

@ -415,7 +415,6 @@ Enables caching in the system'),
),
'labs' => array(
'date_from_headers' => array(true, 'Display message RFC 2822 date and time header, instead of the arrival internal date.'),
'allow_message_append' => array(false, 'Allow drag & drop .eml files from system into messages list'),
'login_fault_delay' => array(5, 'When login fails, wait N seconds before responding'),
'log_ajax_response_write_limit' => array(300),