diff options
author | Kali Kaneko <kali@leap.se> | 2014-01-07 11:34:08 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-01-08 20:53:47 -0400 |
commit | 4ba5d5b405e3c6a6bc997df2073ffc8ea3fa75a9 (patch) | |
tree | 7519ccd4dec15240cc8a89ff34fdc61ee7236141 /src/leap/mail/decorators.py | |
parent | a203337d155a6e7186980ef175642adc91d472fe (diff) |
Second stage of the new year's storage rewrite.
* 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.
Diffstat (limited to 'src/leap/mail/decorators.py')
-rw-r--r-- | src/leap/mail/decorators.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/mail/decorators.py b/src/leap/mail/decorators.py index 024a139..d5eac97 100644 --- a/src/leap/mail/decorators.py +++ b/src/leap/mail/decorators.py @@ -27,6 +27,11 @@ from twisted.internet.threads import deferToThread logger = logging.getLogger(__name__) +# TODO +# Should write a helper to be able to pass a timeout argument. +# See this answer: http://stackoverflow.com/a/19019648/1157664 +# And the notes by glyph and jpcalderone + def deferred(f): """ Decorator, for deferring methods to Threads. |