From 6efd697a1e5d71409dcd95c757c7f1438c03d622 Mon Sep 17 00:00:00 2001 From: yuri Date: Thu, 10 Sep 2015 10:57:48 +0300 Subject: [PATCH] fix email import counter --- application/Espo/Services/EmailAccount.php | 1 + application/Espo/Services/InboundEmail.php | 1 + 2 files changed, 2 insertions(+) diff --git a/application/Espo/Services/EmailAccount.php b/application/Espo/Services/EmailAccount.php index edd974362b..7422d3746b 100644 --- a/application/Espo/Services/EmailAccount.php +++ b/application/Espo/Services/EmailAccount.php @@ -251,6 +251,7 @@ class EmailAccount extends Record if ($maxSize) { if ($storage->getSize($id) > $maxSize * 1024 * 1024) { + $k++; continue; } } diff --git a/application/Espo/Services/InboundEmail.php b/application/Espo/Services/InboundEmail.php index 3bba6f434e..608db19553 100644 --- a/application/Espo/Services/InboundEmail.php +++ b/application/Espo/Services/InboundEmail.php @@ -230,6 +230,7 @@ class InboundEmail extends \Espo\Services\Record if ($maxSize) { if ($storage->getSize($id) > $maxSize * 1024 * 1024) { + $k++; continue; } }