summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/tests
AgeCommit message (Collapse)Author
2014-02-20mail parsing performance improvementsKali Kaneko
Although the do_parse function is deferred to threads, we were actually waiting till its return to fire the callback of the deferred, and hence the "append ok" was being delayed. During massive appends, this was a tight loop contributing as much as 35 msec, of a total of 100 msec average. Several ineficiencies are addressed here: * use pycryptopp hash functions. * avoiding function calling overhead. * avoid duplicate call to message.as_string * make use of the string size caching capabilities. * avoiding the mail Parser initialization/method call completely, in favor of the module helper to get the object from string. Overall, these changes cut parsing to 50% of the initial timing by my measurements with line_profiler, YMMV.
2014-02-17select instead of examineKali Kaneko
2014-02-17long-due update to unittests!Kali Kaneko
So we're safe under the green lights before further rewriting. :)
2014-02-05minimal regression testsKali Kaneko
2014-01-30allow to pass file as argumentKali Kaneko
2014-01-30docstring fixesKali Kaneko
Also some fixes for None comparisons.
2014-01-28handle last_uid property in memory storeKali Kaneko
2014-01-26Allow passing user and mbox as parametersKali Kaneko
Increase default testing duration to 200 secs.
2014-01-26Script for reproducible imaptest runs.Kali Kaneko
2014-01-08add a quick message fetching utility for testsKali Kaneko
2014-01-08Second stage of the new year's storage rewrite.Kali Kaneko
* documents of only three types: * flags * headers * content * add algorithm for walking the parsed message tree. * treat special cases like a multipart with a single part. * modify add_msg to use the walk routine * modify twisted interfaces to use the new storage schema. * tests for different multipart cases * fix multipart detection typo in the fetch This is a merge proposal for the 0.5.0-rc3. known bugs ---------- Some things are still know not to work well at this point (some cases of multipart messages do not display the bodies). IMAP server also is left in a bad internal state after a logout/login.
2014-01-08tests infrastructure for multipartKali Kaneko
2014-01-08fix tests after rewriteKali Kaneko
2013-12-24Fix parsing of IMAP folder names (#4830).drebs
2013-12-13count_foo uses expanded u1db count method.Kali Kaneko
Other fixes in the commit: * Correct the semantic for the recent flag (reset) * Minor unicode fixes. * Use a field for tracking the last_uid In general, this tries to squash all the quick and naive methods that were relying on evaluating all the message objects before returning a result. Further work is still needed, planned also for 0.5 release. get_by_index needs to be indexed too.
2013-12-11consume messages eagerlyKali Kaneko
2013-12-10make exceptions fail the test.Kali Kaneko
right now, the exceptions were visible in the stdout, but the test was not *actually* failing. using nose deferred decorator for this.
2013-12-06pep8 cleanupKali Kaneko
2013-11-21Add a header that reflects the validity of incoming signatures. Closes #4354.drebs
2013-11-07Cleanup code and fix tests.drebs
2013-08-21Update to new soledad package scheme.drebs
2013-07-22Adapt IMAP to latest Soledad api.drebs
* Also fix some tests that where not up-to-date with code.
2013-05-17Functional SoledadBackedAccount and LeapMailboxesKali Kaneko
The imap service is launched from the tac file, and still needs some information to be provided in separate config files that stub much of the initialization parameters. working fetch and store methods. tested with offlineimap and thunderbird. several mailboxes might be broken.
2013-04-09Initial importKali Kaneko