summaryrefslogtreecommitdiff
path: root/mail/src
AgeCommit message (Collapse)Author
2016-08-25[tests] pep8 fixes + add pep8 step to tox runKali Kaneko
2016-08-25[tests] move sample file to incoming test folderKali Kaneko
2016-08-25[tests] avoid pytest warningKali Kaneko
2016-08-25[tests] adapt smtp module testsKali Kaneko
2016-08-25[tests] adapt and fix outgoing module testsKali Kaneko
keymanager was hanging because it was trying to fetch a nonexistent key. therefore, fetch_remote flag has to be passed along.
2016-08-25[tests] fix initialization of incoming service testsKali Kaneko
otherwise, there was a very ugly bug in which the (imap) inbox kept a reference to the first instance of soledad used during a testing session. that made tests hang because, when that soledad instance is shutdown, the decryption pool is no longer running.
2016-08-25[tests] adapt imap testKali Kaneko
2016-08-25[tests] fix testKali Kaneko
2016-08-25[bug] fix import time mutable default paramKali Kaneko
2016-08-25[tests] adapt top level mail module testsKali Kaneko
2016-08-25[refactor] move common testing boilerplateKali Kaneko
2016-08-25[refactor] [bug] simplify and bugfix walk moduleKali Kaneko
some tests added too - Related: #7999
2016-08-01[refactor] deprecating u1db, using l2db instead.NavaL
To keep compatibility with soledad upgrades. It will namely cause version conflicts to not be properly handled otherwise.
2016-06-17[bug] initialize OpenSSL context just once in leap.mailNavaL
Do not initialize the openssl context on each call to get mail payload phash. The openSSL backend should only be initialized once because it is activating the os random engine which in turn unregister and free current engine first. This is very tricky when operations are running in threads as it essentially momentarily unregister the openssl crypto callbacks that makes openssl thread safe. - Resolves: #8180 with the soledad PR #324
2016-06-08[tests] keymanager._fetcher doesn't exist anymoreRuben Pollan
- Resolves: #8177
2016-06-08Merge branch 'pixelated/fix_sign_apple_mail' into developRuben Pollan
2016-06-07Merge branch 'pixelated/fix_test_decrypt_email' into developRuben Pollan
2016-05-25[refactor] change the check to validate signature from Apple MailCaio Carrara
It changes the way that incoming service checks if a additional verification is needed to validate signature. The way before was checking by the type of signature object and calling the verify signature method if the type is different from OpenPGPKey. However it could be more readable if we check the type of decrypted message. If it's a multipart/signed message and not a plain/text we need to verify the signature because keymanager couldn't do it during the decryption process.
2016-05-24[tests] add test to validate signature from apple mailCaio Carrara
This change adds test to validate signature of encrypted email created by apple mail. It's important to note that apple mail has a specific way to encrypt signed messages. First it sign the email and then encrypt the previous signed message. It was also added a message file with the expected data.
2016-05-18[feat] Adapt to the new KeyManager API without key types.Ruben Pollan
- Related: #8031
2016-05-18Add not called asserts to testDecryptEmailThais Siqueira
The functions decryption_error_not_called and add_decrypted_header_called were not being called on testDecryptEmail. So the asserts was not being called as well. This change adds the above functions as callbacks to be called after the fetch method.
2016-05-16[bug] verify signature of encrypted email from Apple MailThais Siqueira
Fix verify signature on encrypted email from Apple Mail, adding a step to verify signature after decrypt the email because the keymananger could not verify signature when decrypting it
2016-05-16[style] pep8Kali Kaneko
2016-05-12[bug] Allow pixelated integration not to interfere with thunderbirdKali Kaneko
One of the pixelated adaptors was trying to access a non-existing attribute in HashableMailbox, which for some reason was blocking the operation of the imap server (uncatched exception in listeners call maybe). adding an attribute skips this error and therefore allows seamless use of both pixelated and thunderbird user agents at the same time. Resolves: #8083
2016-04-26[bug] cast the identity to bytesKali Kaneko
This fixes a bug in which the tls transport complains about receiving unicode. It was only made evident by running against twisted 16.
2016-04-15[refactor] change IMAPAccount signatureKali Kaneko
for consistency with the previous Account change.
2016-04-15[bug] Adds user_id to AccountCaio Carrara
Previously Account used user id from the store, but this attribute is optional and None by default. This caused the collection_mapping to be unable to distinct between multiple users message collections. This chance adds a non optional user_id attribute to Account and use it to index the collection_mapping. - Resolves: https://github.com/pixelated/pixelated-user-agent/issues/674 - Releases: 0.4.0
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-04-07[feature] use same token for imap/stmp authenticationKali Kaneko
This greatly simplifies the handling of the password in the thunderbird extension. Related: #6041
2016-04-01[pkg] update to versioneer 0.16Kali Kaneko
2016-03-30[feature] SMTP delivery bouncesKali Kaneko
We catch any error on SMTP delivery and format it as a bounce message delivered to the user Inbox. this doesn't comply with the bounce format, but it's a nice first start. leaving proper structuring of the delivery failure report for future iterations. - Resolves: #7263
2016-03-30[style] pep8Kali Kaneko
2016-03-24[bug] Fix unread mails notificationKali Kaneko
this one was missing after the events refactor. the bug is that client was discarding the first parameter, assuming it was the userid.
2016-03-24[bug] let the inbox used in IncomingMail notify any subscribed MailboxKali Kaneko
the mail service uses an Account object created from scratch, so it wasn't sharing the collections mapping with the other Account object that is created in the IMAP Service. I make it a class attribute to allow mailbox notifications. However, with the transition to a single service tree, this class attribute can again become a class instance. This is somehow related to a PR proposed recently by cz8s in pixelated team: https://github.com/leapcode/leap_mail/pull/228 However, I'm reluctant to re-use IMAPMailbox instances, since they represent concurrent views over the same collection. I believe that sharing the same underlying collection might be enough.
2016-03-24[bug] emit imap-login event againKali Kaneko
this was gone with the imap/cred refactor, but the client relies on it to hide the 'congratulations!' welcome display on the mail widget.
2016-03-24[bug] Decode attached keys so they are recognized by keymanagerRuben Pollan
- Resolves: #7977
2016-03-24[bug] Fix IMAP fetch headersRuben Pollan
- Resolves: #7898
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-29[feat] use fingerprint instead of key_id to address keysRuben Pollan
2016-02-28[bug] Use the right succeed function for passthrough encrypted emailRuben Pollan
- Resolves #7861
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
2016-02-09[style] fix pep8Ruben Pollan
2016-02-09[tests] fix missing pycryptopp dependency and mock async callsFolker Bernitt
- leap_mail still uses pycryptopp and therefore still needs the dependency - Keymanager calls to async HTTPClient had not been mocked, causing a test to fail - fixed a pep8 warning
2016-02-08[feat] Validate signature with attachmentsGiovane
- Create a new Generator that doesn't trim the headers - Extract detached signature from message - Convert message to the body an attachments level - Add coment to the generator workaround and shows which python version has the patch
2016-01-21[feat] Verify plain text signed emailGiovane
- Extract message serialization to a method - Add new condition to verify signature on plain text mail - Return InvalidSignature if cannot verify
2015-12-21[tests] make tests use dummy authenticationKali Kaneko
2015-12-18[feat] cred authentication for SMTP serviceKali Kaneko
2015-12-15[style] pep8Kali Kaneko