diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-05-23 11:52:42 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-05-25 17:29:29 +0300 |
commit | bbd1806056ee45950fecbe19b6233b15025b38ae (patch) | |
tree | 77b1f7793bc444de72eafbed228aa0ed122c33d6 /tests | |
parent | fa1bc2931090b54c76ac99578e00f48df67c1025 (diff) |
Use UID ranges for IMAP fetch operations during sync
This does not show any measurable performance improvement but precents
the issue that the IMAP command can be too long for some IMAP servers
otherwise.
Ref https://github.com/nextcloud/mail/commit/e22742731adc1c1c03c394029948c7fa67e31b74
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/IMAP/MessageMapperTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Unit/IMAP/MessageMapperTest.php b/tests/Unit/IMAP/MessageMapperTest.php index 78b054eda..618352bd1 100644 --- a/tests/Unit/IMAP/MessageMapperTest.php +++ b/tests/Unit/IMAP/MessageMapperTest.php @@ -81,7 +81,7 @@ class MessageMapperTest extends TestCase { $message2, ]; - $result = $this->mapper->findByIds($imapClient, $mailbox, $ids); + $result = $this->mapper->findByIds($imapClient, $mailbox, new Horde_Imap_Client_Ids($ids)); $this->assertEquals($expected, $result); } |