summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/mailbox.py
AgeCommit message (Collapse)Author
2014-02-25fix unread notification to UIKali Kaneko
2014-02-25Workaround for broken notify-after-copyKali Kaneko
2014-02-20Fix regression on "duplicate drafts" issue.Kali Kaneko
Not a permanent solution, but it looks for fdoc matching a given msgid to avoid duplication of drafts in thunderbird folders.
2014-02-20fix rdoc duplicationKali Kaneko
2014-02-17avoid unneeded db index updates and rdoc creationKali Kaneko
2014-02-17defer fetch-all-flags tooKali Kaneko
2014-02-17cache uidvalidityKali Kaneko
2014-02-17speedup mailbox selectKali 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-17fix repeated recent flagKali Kaneko
2014-02-17do not get last_uid from the set of soledad messagesKali Kaneko
but always from the counter instead. once assigned, the uid must never be reused, unless the uidvalidity mailbox value changes. doing otherwise will cause messages not to be shown until next session. Also, renamed get_mbox method for clarity.
2014-02-17add profile-command utilityKali Kaneko
2014-02-17remove hdoc copy since it's in its own structure nowKali Kaneko
2014-02-17take recent count from memstoreKali Kaneko
2014-02-17do not defer fetches to threadKali Kaneko
I think this is not a good idea now that all is done in the memstore, overhead from passing the data to thread and gathering the result seems to be much higher than just retreiving the data we need from the memstore.
2014-02-17prefetch flag docsKali Kaneko
2014-02-17defer copy and soledad writesKali Kaneko
2014-02-05fix expunge deferreds so they waitKali Kaneko
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-30skip notificationsKali Kaneko
2014-01-30Fix UIDVALIDITY command.Kali Kaneko
thanks to evolution for complaining about this.
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-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-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
2014-01-26temporarily remove notify after adding msgKali Kaneko
2014-01-21workaround for recursionlimit due to qtreactorKali Kaneko
2014-01-20Fix search command filterTomás Touceda
2014-01-20Fix typo in the signal_unread method. Closes: #5001Kali Kaneko
It had been made public to be called from the overwritten methods in service.imap
2014-01-17Add a fetch_headers for mass-header fetch queriesKali Kaneko
2014-01-17Separate RECENT Flag to a mailbox document.Kali Kaneko
this way we avoid a bunch of writes.
2014-01-16Temporal refactor setting of recent flag.Kali Kaneko
This flag is set way too often, and is damaging performance. Will move it to a single doc per mailbox in subsequente commits.
2014-01-16Fix grave bug with iteration in STOREKali Kaneko
This was in the root for problems with Trash behavior. Closes: #4958 Make use of the refactored utilities for bounding and filtering sequences.
2014-01-16factor out bound and filter for msg seqsKali Kaneko
2014-01-16reset last uid on expungeKali Kaneko
2014-01-15Performance improvement on FLAGS-only FETCHKali Kaneko
* Compute the intersection set of the uids on a FETCH, so we avoid iterating through the non-existant UIDs. * Dispatch FLAGS query to our specialized method, that fetches all the flags documents and return objects that only specify one subset of the MessagePart interface, apt to render flags quickly with less queries overhead. * Overwrite the do_FETCH command in the imap Server to use fetch_flags. * Use deferLater for a better dispatch of tasks in the reactor.
2014-01-14remove locks (moved to soledad client)Kali Kaneko
2014-01-13Very limited support for SEARCH Commands. Closes: #4209Kali Kaneko
limited to HEADER Message-ID. This is a quick workaround for avoiding duplicate saves in Drafts Folder. but we'll get there!
2014-01-13Add check for uniqueness when adding mails.Kali Kaneko
Check by mbox + content-hash