mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
Added IMAP body text limit
This commit is contained in:
parent
037f4dc61c
commit
0fc8967a7f
5 changed files with 59 additions and 10 deletions
|
|
@ -5425,7 +5425,9 @@ class Actions
|
|||
try
|
||||
{
|
||||
$oMessage = $this->MailClient()->Message($sFolder, $iUid, true,
|
||||
!!$this->Config()->Get('labs', 'use_imap_thread', false) ? $this->Cacher() : null);
|
||||
!!$this->Config()->Get('labs', 'use_imap_thread', false) ? $this->Cacher() : null,
|
||||
(int) $this->Config()->Get('labs', 'imap_body_text_limit', 0)
|
||||
);
|
||||
}
|
||||
catch (\Exception $oException)
|
||||
{
|
||||
|
|
@ -7081,6 +7083,8 @@ class Actions
|
|||
|
||||
$mResult['IsForwarded'] = 0 < \strlen($sForwardedFlag) && \in_array(\strtolower($sForwardedFlag), $aFlags);
|
||||
$mResult['IsReadReceipt'] = 0 < \strlen($sReadReceiptFlag) && \in_array(\strtolower($sReadReceiptFlag), $aFlags);
|
||||
|
||||
$mResult['TextPartIsTrimmed'] = false;
|
||||
|
||||
if ('Message' === $sParent)
|
||||
{
|
||||
|
|
@ -7142,6 +7146,8 @@ class Actions
|
|||
|
||||
$mResult['TextHash'] = \md5($mResult['Html'].$mResult['Plain'].$mResult['PlainRaw']);
|
||||
|
||||
$mResult['TextPartIsTrimmed'] = $mResponse->TextPartIsTrimmed();
|
||||
|
||||
$mResult['PgpSigned'] = $mResponse->PgpSigned();
|
||||
$mResult['PgpEncrypted'] = $mResponse->PgpEncrypted();
|
||||
$mResult['PgpSignature'] = $mResponse->PgpSignature();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue