- Sep 01, 2020
-
-
GretaD authored
Signed-off-by:
GretaD <gretadoci@gmail.com>
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Aug 24, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Aug 11, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Aug 10, 2020
-
-
GretaD authored
Signed-off-by:
GretaD <gretadoci@gmail.com> Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Jul 13, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Jul 10, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Jul 08, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Jul 03, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- May 28, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- May 27, 2020
-
-
Christoph Wurst authored
When looking for changed and vanished UIDs we typically have to send the list of the known UIDs to the IMAP server to know what went missing meanwhile. With the number of UIDs sent, the size of the IMAP command grows. At some point the server will just refuse the command due to its size. To circumvent this scenario, this patch splits the sync process into new, changed and vanished. New is cheap in terms of data sent, so it stays untouched. Changed and vanished will now split the known UIDs list into chunks and retrieve partial sync results that way. Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- May 19, 2020
-
-
Holger Dehnhardt authored
Signed-off-by:
Holger Dehnhardt <holger@dehnhardt.org> Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Apr 28, 2020
-
-
Christoph Wurst authored
The initial message cache sync estimates the UID range of the next message page so it can fetch messages efficiently. There was an uncovered edge case where the next page might not return any message, simple because there is a larger gap between the existing UIDs. Therefore the sync process was aborted as incomplete over and over as it could not make any progress and the number of known messages never reached the total number of messages on IMAP. This patch changes the logic so it retries the next page if the current one is empty. To break a possibly infinite recursion there is a check about reaching the highest UID reported by the server. Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Apr 24, 2020
-
-
Christoph Wurst authored
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>
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Apr 16, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Apr 14, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Apr 07, 2020
-
-
Christoph Wurst authored
The initial message sync has to fetch potentially large amounts of data and insert that into the database. To work around limitations with sync requests triggered by web requests the process had already been made interruptable and resumable. This means we never insert all the data right away. Yet, the IMAP code fetched all UIDs before we capped it to a maximum number of results per sync attempt. Depending on the mailbox size this operation could require and allocate a lot of memory. On some setup with lower memory limits, the process was aborted by the web server due to a php memory exhaustion. This patch modifies the IMAP code to optimize the memory usage by limiting the amount of data that is fetched with each initial sync attempt. The algorithm works as follows. IMAP allows us to search in a range with a lower an upper bound UID. While we know the highest known UID from the current cache values, we can't derive the range for the next page from that as UIDs are not continuous but might have holes due to deleted messages. If we assume that messages of a mailbox are roughly distributed equally across the assigned UIDs we can guess the max UID for the next range. So we ask the server for min and max UIDs. The min or our known highest UID is always the lower bound. Then we can calculate the distribution rate from the min, max and number of messages and build the upper bound. On everage this will fetch about the expected number of messages. It could be more, but it could also be less. It shouldn't matter in most cases. Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Mar 26, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Mar 24, 2020
-
-
Cyrille Bollu authored
Signed-off-by:
Cyrille Bollu <cyrpub@bollu.be> Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at> Co-authored-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Mar 23, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Mar 20, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
Christoph Wurst authored
* Remove the heavy-weight virtual flagged mailbox * Implement a favorites inbox as a simple filtered view * Refactor the sync logic so it work with filtered mailboxes Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Feb 26, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Feb 10, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Feb 06, 2020
-
-
Christoph Wurst authored
* Query IMAP only if necessary * Fix pagination (when IMAP results are used) * Fix CC and BCC search queries Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Jan 31, 2020
-
-
Christoph Wurst authored
Co-authored-by:
Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Jan 08, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Oct 08, 2019
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Oct 07, 2019
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Oct 01, 2019
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Sep 27, 2019
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Sep 26, 2019
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Sep 06, 2019
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Sep 05, 2019
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-