summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/memorystore.py
AgeCommit message (Collapse)Author
2015-02-11cleanup imap implementationKali Kaneko
2015-02-11adapt to soledad 0.7 async APIKali Kaneko
2015-01-05Port `enum` to `enum34`Ruben Pollan
2014-09-03fix and migrate tests to trialKali Kaneko
We cannot use setUpClass when running tests with trial. But, after all, it's not *so* expensive to initialize a new soledad instance (since we'll be mostly using the memstore for the tests).
2014-02-27rename all fdocs when folder is renamedKali Kaneko
2014-02-20ignore keyerror on deletionKali Kaneko
2014-02-20fix rdoc duplicationKali Kaneko
2014-02-17defer fetch-all-flags tooKali Kaneko
2014-02-17remove size calculation until we defer it to thread properlyKali Kaneko
2014-02-17freeze dirty/new sets to avoid changes during iterationKali Kaneko
2014-02-17defer message push to threadKali Kaneko
2014-02-17docstring fixesKali Kaneko
2014-02-17remove all refs during removal, and protect from empty docsKali Kaneko
2014-02-17move mbox-doc handling to soledadstore, and lock itKali Kaneko
2014-02-17purge empty fdocs on selectKali Kaneko
2014-02-17defer appends tooKali Kaneko
and cut some more time by firing the callback as soon as we've got an UID.
2014-02-17defer fetch to threadKali Kaneko
also, dispatch query for all headers to its own method.
2014-02-17improve flag-docs relative internal storageKali Kaneko
2014-02-17separate new and dirty queuesKali Kaneko
2014-02-17defer_to_thread the bulk of write operationsKali Kaneko
and batch the notifications back to the memorystore, within the reactor thread.
2014-02-17separate better dirty/new flags; add cdocsKali Kaneko
2014-02-17remove hdoc copy since it's in its own structure nowKali Kaneko
2014-02-17change internal storage and keying scheme in memstoreKali Kaneko
2014-02-17make last_uid a defaultdictKali Kaneko
2014-02-17enable memory-only storeKali Kaneko
2014-02-17increase writeback period for debugKali Kaneko
2014-02-17take recent count from memstoreKali Kaneko
2014-02-17prefetch flag docsKali Kaneko
2014-02-17defer parse to threadKali Kaneko
2014-02-17fix get_size callKali Kaneko
2014-02-13Merge remote-tracking branch 'refs/remotes/kali/feature/get-sizes' into developTomás Touceda
2014-02-06Flush IMAP data to disk when stopping. Closes #5095.drebs
2014-02-05Fix the fallback for the memoized call for bodies/content.Kali Kaneko
Changed to "empty" to consider empty strings too.
2014-02-05fix expunge deferreds so they waitKali Kaneko
2014-02-04Rebased dreb's commit to update sizes dictionaryKali Kaneko
for faster calculation of sizes. https://github.com/andrejb/leap_mail/commit/8b88e85fab3c2b75da16b16c8d492c001b8076c6
2014-02-04fixes after reviewKali Kaneko
* Some more docstring completion/fixes. * Removed unneeded str coertion. * Handle mailbox name in logs. * Separate manhole boilerplate into its own file.
2014-02-02re-add expunge deferredKali Kaneko
2014-02-02fix missing content after in-memory addKali Kaneko
because THE KEYS WILL BE STRINGS AFTER ADDED TO SOLEDAD Can I remember that? * Fix copy from local folders * Fix copy when we already have a copy of the message in the inbox, marked as deleted. * Fix also bad deferred.succeed in add_msg when it already exist.
2014-01-31properly implement deferreds in several commandsKali Kaneko
Passing along a deferred as an observer whose callback will be called with the proper result. Returning to thread in the appropiate points. just let's remember that twisted APIs are not thread safe! SoledadStore process_item also properly returned to thread. Changed @deferred to @deferred_to_thread so it results less confusing to read. "know the territory". aha!
2014-01-31prime-uidsKali Kaneko
We pre-fetch the uids from soledad on mailbox initialization
2014-01-30Fix copy and deletion problemsKali Kaneko
* reorganize and simplify STORE command processing * add the notification after the processing of the whole sequence
2014-01-30docstring fixesKali Kaneko
Also some fixes for None comparisons.
2014-01-28handle last_uid property in memory storeKali Kaneko
2014-01-28recent-flags use the memory storeKali Kaneko
2014-01-28use enums for dict keysKali Kaneko
2014-01-28flags use the memstoreKali Kaneko
* add new/dirty deferred dict to notify when written to disk * fix eventual duplication after copy * fix flag flickering on first retrieval.
2014-01-28Unset new flag after successful writeKali Kaneko
2014-01-28add soledadstore classKali Kaneko
move parts-related bits to messageparts pass soledad in initialization for memory messages
2014-01-28memory store for append/fetch/copyKali Kaneko