Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
and cut some more time by firing the callback as soon as we've got
an UID.
|
|
also, dispatch query for all headers to its own method.
|
|
|
|
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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
* Some more docstring completion/fixes.
* Removed unneeded str coertion.
* Handle mailbox name in logs.
* Separate manhole boilerplate into its own file.
|
|
|
|
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.
|
|
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!
|
|
We pre-fetch the uids from soledad on mailbox initialization
|
|
|
|
thanks to evolution for complaining about this.
|
|
* reorganize and simplify STORE command processing
* add the notification after the processing of the whole sequence
|
|
Also some fixes for None comparisons.
|
|
|
|
* add new/dirty deferred dict to notify when written to disk
* fix eventual duplication after copy
* fix flag flickering on first retrieval.
|
|
move parts-related bits to messageparts
pass soledad in initialization for memory messages
|
|
|
|
|
|
|
|
|
|
It had been made public to be called from the overwritten methods
in service.imap
|
|
|
|
this way we avoid a bunch of writes.
|
|
This flag is set way too often, and is damaging performance.
Will move it to a single doc per mailbox in subsequente commits.
|
|
This was in the root for problems with Trash behavior. Closes: #4958
Make use of the refactored utilities for bounding and filtering
sequences.
|
|
|
|
|
|
* 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.
|
|
|
|
limited to HEADER Message-ID.
This is a quick workaround for avoiding duplicate saves in Drafts Folder.
but we'll get there!
|
|
Check by mbox + content-hash
|
|
* this allows quick testing using telnet, and the use of other
less sofisticated MUAs.
|
|
|
|
|
|
* Separates between flags, docs, body and attachment docs.
* Implement IMessageCopier interface: move and have fun!
This little change is known to push forward our beloved architect
emotional rollercoster.
* Message deduplication.
* It also fixes a hidden bug that was rendering the multipart mime
interface useless
(yes, the "True" parameter in the parsestr method).
* Does not handle well nested attachs, includes dirty workaround that
flattens them.
* Includes chiiph's patch for rc2:
* return deferred from addMessage
* convert StringIO types to string
* remove unneeded yields from the chain of deferreds in fetcher
|
|
...aaaand not a single fuck was given that day!
|