summaryrefslogtreecommitdiff
path: root/src/leap/mail/walk.py
AgeCommit message (Collapse)Author
2016-04-11Remove leftover print statementCaio Carrara
The print statement only printed a number. Seeing the print you cannot know what was printed. Seems that this line was left during a debug process.
2016-03-11[style] pep8!Kali Kaneko
2016-03-09[bug] specify openssl backend explicitelyKali Kaneko
for some reason, available_backends does not work inside a frozen PyInstaller binary. - Resolves: #7952
2016-02-11[feat] Use cryptography instead of pycryptopp to reduce dependencies.Ruben Pollan
* Resolves: #7889
2016-02-11[feat] Remove debug from walkRuben Pollan
2015-08-11[bug] Fix typo in content-transfer-encoding in walk.py.Folker Bernitt
The get_raw_docs method accesses header field content-transfer-encoding using the string 'content-transfer-type' so the raw doc dict always ends up with that value set to empty string.
2015-07-21Pep8 warns about lambdas being assigned to a variable, changed walk and ↵Bruno Wagner
sync_hooks to lambdas to real functions
2015-07-21Fixed all the pep8 warnings in the codeBruno Wagner
2015-02-11allow text/html for bodiesKali Kaneko
2015-02-11lots of little fixes after meskio's reviewKali Kaneko
mostly having to do with poor, missing or outdated documentation, naming of confusing things and reordering of code blocks for improved readability.
2015-02-11tests for mail.mail module: MessageKali Kaneko
2015-02-11make outgoing a new submoduleKali Kaneko
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-01-28Unset new flag after successful writeKali Kaneko
2014-01-23add check for none in part_map special caseKali Kaneko
2014-01-23add constants to dict keysKali Kaneko
2014-01-22Properly parse apple mailTomás Touceda
2014-01-13avoid failure if no content-typeKali Kaneko
2014-01-09Check for none in innerheadersKali Kaneko
This was causing a bug, among other things, when saving to the Sent folder for some messages. Closes #4914
2014-01-09check for noneKali 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.