Added IMAP body text limit

This commit is contained in:
RainLoop Team 2014-07-18 15:32:03 +04:00
parent 037f4dc61c
commit 0fc8967a7f
5 changed files with 59 additions and 10 deletions

View file

@ -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();

View file

@ -232,6 +232,7 @@ Enables caching in the system'),
'use_imap_auth_plain' => array(false),
'imap_forwarded_flag' => array('$Forwarded'),
'imap_read_receipt_flag' => array('$ReadReceipt'),
'imap_body_text_limit' => array(555000),
'smtp_show_server_errors' => array(false),
'curl_proxy' => array(''),
'curl_proxy_auth' => array(''),