diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-04-24 09:57:52 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-04-24 10:40:15 +0300 |
commit | 8eedddf2da195c03374d83c44157daf8e2141317 (patch) | |
tree | e96bb4799816e6270b7e450f6229d9bad0698f27 /lib/IMAP | |
parent | c37d896813923e2f987a99577ba20b4c6aa012b2 (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.php | 2 |
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, ]; } |