Age | Commit message (Collapse) | Author |
|
I must have removed this to get rid of a error with some test sample
during the testing of the branch, but it's absolutely needed so that
mime attachments get shown properly. If the TypeError raises
inapropiately due to some malformed part_map, then we will have to
catch it using a workaround somewhere else.
|
|
|
|
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
|
|
|
|
|
|
Also, check for empty body-doc
|
|
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
|
|
|
|
|
|
|
|
|
|
Increase default testing duration to 200 secs.
|
|
|
|
|
|
|
|
|
|
|
|
Fixes: #5009
|
|
|
|
It had been made public to be called from the overwritten methods
in service.imap
|
|
'refs/remotes/ivan/bug/handle-unicode-characters' into develop
|
|
Also remove some unused imports.
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
testimap was choking on this.
|
|
ie, we got something like FETCH 1:* (FLAGS)
but not for FETCH 1:* (FLAGS INTERNALDATE)
|
|
This will need to place a configuration file with:
* userid
* uuid
* password (optional)
Use it for even faster startup times, and running under the native
twisted reactor.
|
|
* 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.
|
|
Since the soledad client lock gets us covered with writes now, it makes
no sense to enqueue using the messageconsumer.
The SoledadWriter is left orphaned by now. We might want to reuse it
to enqueue low priority tasks that need a strategy of retries in case
of revisionconflicts.
the MessageConsumer abstraction should also be useful for the case of
the smtp queue.
|
|
|
|
limited to HEADER Message-ID.
This is a quick workaround for avoiding duplicate saves in Drafts Folder.
but we'll get there!
|
|
We still are getting wrong output with unicode chars, but this
at least avoids breaking the fetch command.
|