Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/IMAP
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-24 09:57:52 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-24 10:40:15 +0300
commit8eedddf2da195c03374d83c44157daf8e2141317 (patch)
treee96bb4799816e6270b7e450f6229d9bad0698f27 /lib/IMAP
parentc37d896813923e2f987a99577ba20b4c6aa012b2 (diff)
Log the progress of an incomplete sync
This is helpful to determine whether the initial sync just takes long or got stuck. Ref https://github.com/nextcloud/mail/issues/2976#issuecomment-618833115 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/IMAP')
-rw-r--r--lib/IMAP/MessageMapper.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/IMAP/MessageMapper.php b/lib/IMAP/MessageMapper.php
index 7df82e9b9..8389e3b52 100644
--- a/lib/IMAP/MessageMapper.php
+++ b/lib/IMAP/MessageMapper.php
@@ -116,6 +116,7 @@ class MessageMapper {
return [
'messages' => [],
'all' => true,
+ 'total' => $total,
];
}
@@ -169,6 +170,7 @@ class MessageMapper {
$uidsToFetch
),
'all' => $upper === $max,
+ 'total' => $total,
];
}