summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/tests
AgeCommit message (Collapse)Author
2015-02-11Refactor fetch into leap.mail.incoming IServiceRuben Pollan
2015-02-11patch cbSelect to accept deferreds for count*Kali Kaneko
2015-02-11Complete IMAP implementation, update testsKali Kaneko
2015-02-11Use mailbox uuidsKali Kaneko
The previous implementation is naive, since it imposes a burden when renaming mailboxes. We're using uuids in the local uid tables instead, which is more cryptic but way more efficient. * receive mbox uuid instead of name * use mailbox uuid in identifiers
2015-02-11tests for mail.mail module: MessageKali Kaneko
2015-02-11Serializable Models + Soledad AdaptorKali Kaneko
2015-02-11New keymanager async APIRuben Pollan
2015-02-11adapt to soledad 0.7 async APIKali Kaneko
2015-02-11specify not syncable shared dbKali Kaneko
2014-11-04Discover public key via attachmentRuben Pollan
2014-10-13Get keys from OpenPGP email headerRuben Pollan
2014-09-10add test for empty mailbox creationKali Kaneko
2014-09-03split tests in different modulesKali Kaneko
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-08-21On the mac, the tempdir is not created at /tmp, so checking the tempdir ↵Bruno Wagner Goncalves
format instead
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