Ruben Pollan [Thu, 26 Oct 2017 09:08:36 +0000 (11:08 +0200)]
Deprecated repo
Kali Kaneko [Mon, 18 Apr 2016 15:53:18 +0000 (11:53 -0400)]
Merge tag '0.4.1'
Tag version 0.4.1
Kali Kaneko [Mon, 18 Apr 2016 15:51:46 +0000 (11:51 -0400)]
[pkg] Update changelog
Kali Kaneko [Mon, 18 Apr 2016 15:41:53 +0000 (11:41 -0400)]
[pkg] bump leap deps
Kali Kaneko [Fri, 15 Apr 2016 20:06:56 +0000 (16:06 -0400)]
[refactor] change IMAPAccount signature
for consistency with the previous Account change.
Caio Carrara [Wed, 13 Apr 2016 19:12:09 +0000 (16:12 -0300)]
[bug] Adds user_id to Account
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
Caio Carrara [Mon, 11 Apr 2016 12:42:40 +0000 (09:42 -0300)]
Remove leftover print statement
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.
Kali Kaneko [Thu, 7 Apr 2016 13:54:55 +0000 (09:54 -0400)]
[feature] use same token for imap/stmp authentication
This greatly simplifies the handling of the password in the thunderbird
extension.
Related: #6041
Kali Kaneko [Fri, 1 Apr 2016 17:07:18 +0000 (13:07 -0400)]
[pkg] update to versioneer 0.16
Kali Kaneko [Tue, 29 Mar 2016 21:21:43 +0000 (17:21 -0400)]
[feature] SMTP delivery bounces
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
Kali Kaneko [Wed, 30 Mar 2016 15:23:12 +0000 (11:23 -0400)]
[style] pep8
Kali Kaneko [Wed, 23 Mar 2016 22:14:53 +0000 (18:14 -0400)]
[bug] Fix unread mails notification
this one was missing after the events refactor.
the bug is that client was discarding the first parameter, assuming it
was the userid.
Kali Kaneko [Wed, 23 Mar 2016 21:50:21 +0000 (17:50 -0400)]
[bug] let the inbox used in IncomingMail notify any subscribed Mailbox
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.
Kali Kaneko [Wed, 23 Mar 2016 21:48:36 +0000 (17:48 -0400)]
[bug] emit imap-login event again
this was gone with the imap/cred refactor, but the client relies on it
to hide the 'congratulations!' welcome display on the mail widget.
Ruben Pollan [Sun, 20 Mar 2016 18:52:46 +0000 (19:52 +0100)]
[bug] Decode attached keys so they are recognized by keymanager
- Resolves: #7977
Ruben Pollan [Wed, 16 Mar 2016 17:02:04 +0000 (18:02 +0100)]
[bug] Fix IMAP fetch headers
- Resolves: #7898
Kali Kaneko [Thu, 24 Mar 2016 13:29:30 +0000 (09:29 -0400)]
Merge remote-tracking branch 'leapcode/pr/227' into develop
Giovane [Tue, 5 Jan 2016 19:54:17 +0000 (17:54 -0200)]
Fix pixelated repos reference on requirements
Kali Kaneko [Fri, 11 Mar 2016 19:06:25 +0000 (15:06 -0400)]
[style] pep8!
Kali Kaneko [Wed, 9 Mar 2016 16:54:22 +0000 (12:54 -0400)]
[bug] specify openssl backend explicitely
for some reason, available_backends does not work inside a frozen
PyInstaller binary.
- Resolves: #7952
Ruben Pollan [Mon, 21 Dec 2015 14:35:56 +0000 (15:35 +0100)]
[feat] use fingerprint instead of key_id to address keys
Ruben Pollan [Tue, 2 Feb 2016 17:10:26 +0000 (18:10 +0100)]
[bug] Use the right succeed function for passthrough encrypted email
- Resolves #7861
Ruben Pollan [Thu, 11 Feb 2016 00:20:33 +0000 (01:20 +0100)]
[feat] Use cryptography instead of pycryptopp to reduce dependencies.
* Resolves: #7889
Ruben Pollan [Thu, 11 Feb 2016 00:18:11 +0000 (01:18 +0100)]
[feat] Remove debug from walk
Ruben Pollan [Tue, 9 Feb 2016 16:09:14 +0000 (17:09 +0100)]
[style] fix pep8
Ruben Pollan [Tue, 9 Feb 2016 15:38:57 +0000 (16:38 +0100)]
Merge branch 'fix_tests' into develop
Folker Bernitt [Tue, 9 Feb 2016 09:29:52 +0000 (10:29 +0100)]
[tests] fix missing pycryptopp dependency and mock async calls
- 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
Ruben Pollan [Mon, 8 Feb 2016 15:27:34 +0000 (16:27 +0100)]
Merge branch 'verify_signature' into develop
Giovane [Thu, 21 Jan 2016 18:31:14 +0000 (16:31 -0200)]
[feat] Validate signature with attachments
- 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
Giovane [Tue, 19 Jan 2016 19:45:52 +0000 (17:45 -0200)]
[feat] Verify plain text signed email
- Extract message serialization to a method
- Add new condition to verify signature on plain text mail
- Return InvalidSignature if cannot verify
Kali Kaneko [Thu, 17 Dec 2015 05:34:26 +0000 (01:34 -0400)]
[tests] make tests use dummy authentication
Kali Kaneko [Wed, 16 Dec 2015 05:12:30 +0000 (01:12 -0400)]
[feat] cred authentication for SMTP service
Kali Kaneko [Tue, 15 Dec 2015 20:40:46 +0000 (16:40 -0400)]
[style] pep8
Kali Kaneko [Tue, 15 Dec 2015 06:42:14 +0000 (02:42 -0400)]
[docs] add entry about cred-based token authentication to next-changelog
Kali Kaneko [Tue, 15 Dec 2015 06:04:07 +0000 (02:04 -0400)]
[fix] dummy credentials for tests
imap tests must be adapted, using a dummy credential checker.
Kali Kaneko [Fri, 27 Nov 2015 01:27:23 +0000 (21:27 -0400)]
[feat] credentials handling: use twisted.cred
Kali Kaneko [Mon, 14 Dec 2015 22:40:31 +0000 (18:40 -0400)]
[docs] document bugfix on pr 215 by bwagner
Bruno Wagner [Wed, 4 Nov 2015 14:10:56 +0000 (12:10 -0200)]
Fixed the get_body logic
It won't break anymore if the body is None, but will
return an empty body in that case
Kali Kaneko [Mon, 30 Nov 2015 19:37:41 +0000 (15:37 -0400)]
[feat] make events multi-user aware
- Resolves: #7656
- Releases: 0.4.1
Kali Kaneko [Thu, 29 Oct 2015 15:02:09 +0000 (11:02 -0400)]
[docs] add version badge for pypi
Ivan Alejandro [Tue, 27 Oct 2015 20:24:26 +0000 (17:24 -0300)]
[pkg] fold in changes
Kali Kaneko [Tue, 27 Oct 2015 18:13:27 +0000 (14:13 -0400)]
[pkg] Add some entries to the CHANGELOG for 0.4.0 release
Releases: 0.4.0
Kali Kaneko [Thu, 1 Oct 2015 02:44:57 +0000 (22:44 -0400)]
[bug] fix slow appends
we were adding listeners for each mailbox instance, which was making
appends particularly slow, since the method that gets current count and
recent count is expensive and was being called way too many times.
Kali Kaneko [Mon, 28 Sep 2015 20:03:43 +0000 (16:03 -0400)]
[bug] fail gracefully if fetch fails
Related: #7495
Ruben Pollan [Thu, 24 Sep 2015 09:48:04 +0000 (11:48 +0200)]
[bug] signal expired auth token to the GUI
In case of InvalidAuthTokeError from soledad sync we need signal the GUI, so
it will request her to log in again.
- Resolves: #7430
Ivan Alejandro [Wed, 23 Sep 2015 18:36:32 +0000 (15:36 -0300)]
[feat] disable local-only bind on docker container
- Related: #7471
Kali Kaneko [Tue, 22 Sep 2015 21:53:40 +0000 (17:53 -0400)]
[docs] update interfaces documentation
Kali Kaneko [Tue, 22 Sep 2015 21:38:48 +0000 (17:38 -0400)]
[refactor] avoid circular import due to rfc3156
Kali Kaneko [Tue, 22 Sep 2015 19:29:23 +0000 (15:29 -0400)]
[docs] update docs to 0.4.0 release
Kali Kaneko [Wed, 23 Sep 2015 15:45:58 +0000 (11:45 -0400)]
Merge remote-tracking branch 'leapcode/pr/206' into develop
Folker Bernitt [Wed, 23 Sep 2015 08:42:25 +0000 (10:42 +0200)]
[bug] Make _collection_mapping a instance variable
As a class variable multiple account instances share
mailboxes which is bad if its different users or tests
Folker Bernitt [Wed, 16 Sep 2015 08:13:12 +0000 (10:13 +0200)]
[style] fix pep8 warnings
Kali Kaneko [Tue, 22 Sep 2015 18:45:57 +0000 (14:45 -0400)]
[refactor] log the added key explicitely
Ruben Pollan [Tue, 22 Sep 2015 15:03:51 +0000 (17:03 +0200)]
[bug] don't extract openpgp header if valid attached key
The key extract should check first for attached keys and if this fails
then should try the OpenPGP header.
- Resolves: #7480
Kali Kaneko [Mon, 21 Sep 2015 21:22:23 +0000 (17:22 -0400)]
[bug] filter out Nones in the sequence of messages
Kali Kaneko [Mon, 21 Sep 2015 20:37:25 +0000 (16:37 -0400)]
[doc] document return values
Ruben Pollan [Wed, 16 Sep 2015 10:31:50 +0000 (12:31 +0200)]
[style] clean up incoming/service.py
Ruben Pollan [Wed, 16 Sep 2015 10:26:11 +0000 (12:26 +0200)]
[bug] don't fail importing mismatched attached key
We can't import attached keys with different email address than the
sender. Now we don't fail in this case, just log it.
- Resolves: #7454
Kali Kaneko [Tue, 15 Sep 2015 03:33:16 +0000 (23:33 -0400)]
[pkg] bump leap versions needed
Kali Kaneko [Tue, 15 Sep 2015 03:19:58 +0000 (23:19 -0400)]
[feat] use async events api
in this way, we're using twisted reactor instead of having another
thread with zmq's own copy of tornado ioloop.
Resolves: #7274
Ruben Pollan [Thu, 10 Sep 2015 10:19:08 +0000 (12:19 +0200)]
Merge pixelated's X-Leap-Encryption into develop
Kali Kaneko [Tue, 8 Sep 2015 22:45:28 +0000 (18:45 -0400)]
[feature] improve getmail utility
So now it:
- Accepts credentials in a file pointed by environment variable.
- Allows to specify the mailbox to select as a command line flag.
- Allows to select a given message by subject.
For example:
BITMASK_CREDENTIALS=/tmp/bm.secrets ./getmail --mailbox INBOX --subject
'test mail
The two flags are case-insensitive.
This is intended to be used as a helper in end-to-end tests.
Getting a message by subject it's suboptimal, but I think it's good
enough for our testing purposes right now.
Related: #7427
Duda Dornelles [Wed, 2 Sep 2015 19:20:10 +0000 (16:20 -0300)]
[style] fixing pep8 warnings
Duda Dornelles [Wed, 2 Sep 2015 19:14:56 +0000 (16:14 -0300)]
[feat] adding encryption header to msg before saving
This way we can tell if a message was originally encrypted, so that we
can show that information to the end user.
Ivan Alejandro [Wed, 26 Aug 2015 21:09:22 +0000 (18:09 -0300)]
[pkg] fold in changes
Kali Kaneko [Fri, 21 Aug 2015 03:45:19 +0000 (23:45 -0400)]
[tests] properly skip not implemented tests, do not raise
Kali Kaneko [Tue, 18 Aug 2015 15:29:57 +0000 (11:29 -0400)]
[style] pep8 excludes + fixes
Kali Kaneko [Wed, 12 Aug 2015 02:58:34 +0000 (22:58 -0400)]
[docs] add folker to authors + pep8
Folker Bernitt [Tue, 11 Aug 2015 11:42:24 +0000 (13:42 +0200)]
[bug] Fix missing _normailize_dict in DocumentWrapper constructor.
In the constructor values already is normalized (i.e. with underscores),
while kwargs contains items that are not normalized (i.e. with dashes).
Joining the dicts resulted in two entries that only differed by dash or
underscores. The setattr then set the value that occurred later in
items, thereby sometimes overriding the correct value with the default
one.
Folker Bernitt [Tue, 11 Aug 2015 11:38:56 +0000 (13:38 +0200)]
[bug] Fix typo in content-transfer-encoding in walk.py.
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.
Parménides GV [Thu, 6 Aug 2015 06:55:50 +0000 (08:55 +0200)]
[feat] WHEELHOUSE can be a url + --use-leap-wheels
--use-leap-wheels sets --trusted-host (remove it when we have a proper
cert) and WHEELHOUSE to https://ftp.lizard.leap.se
Until we get ftp.lizard cname, use lizard as the wheels server.
- Related: #7339
Kali Kaneko [Tue, 4 Aug 2015 16:18:50 +0000 (12:18 -0400)]
[style] pep8 fixes + pep8 script
Bruno Wagner [Tue, 4 Aug 2015 15:48:56 +0000 (12:48 -0300)]
[tests] Removed outdated test
This test was not updated for a while and it doesn't make sense
in this context, when we create acceptance tests we can make sure
we cover this feature
The issue for acceptance tests is:
https://leap.se/code/issues/7341
Bruno Wagner [Mon, 3 Aug 2015 22:18:31 +0000 (19:18 -0300)]
[tests] Skipped tests that were not implemented
Functionality that is not implemented should not fail, instead
it should be skipped until it is implemented.
Added a return to test_imap_store_fetch setup to make sure the deferred
is being handled
Bruno Wagner [Mon, 3 Aug 2015 20:40:04 +0000 (17:40 -0300)]
[tests] Added requirements-latest help HEAD development
Added requirements-latest to make sure we always use the
latest develop of all dependencies in an automated way
Parménides GV [Fri, 31 Jul 2015 07:02:45 +0000 (09:02 +0200)]
[feat] use wheels to install dependencies
generate_wheels uses $WHEELHOUSE to generate and store the wheels for
requirements.pip and requirements-testing.pip (if it exists).
pip_install_requirements.sh installs requirements.pip from them if
possible (if not, then it fetches them from pypi) or, if passed the
--testing flag, it installs requirements-testing.pip.
Related: #7327
Kali Kaneko [Mon, 3 Aug 2015 18:27:48 +0000 (14:27 -0400)]
Merge remote-tracking branch 'leapcode/pr/188' into develop
Folker Bernitt [Wed, 29 Jul 2015 14:11:33 +0000 (16:11 +0200)]
[bug] fixed syntax error in models.py
The lambdas take two args, so it needs to be a tuple.
Furthermore filter needs a collection.
Kali Kaneko [Tue, 28 Jul 2015 02:15:23 +0000 (22:15 -0400)]
[pkg] add script to install base requirements
- update pip
- install base reqs
Kali Kaneko [Tue, 28 Jul 2015 02:12:01 +0000 (22:12 -0400)]
[pkg] add AUTHORS file + one-liner to generate it
Kali Kaneko [Wed, 22 Jul 2015 16:23:18 +0000 (12:23 -0400)]
[pkg] separate leap requirements
this is part of a process to make the setup of the development mode less
troublesome. from now on, setting up a virtualenv in pure development
mode will be as easy as telling pip to just install the external
dependencies::
pip install -r pkg/requirements.pip
and traversing all the leap repos for the needed leap dependencies doing::
python setup.py develop
- Related: #7288
Bruno Wagner [Tue, 21 Jul 2015 23:11:29 +0000 (20:11 -0300)]
Changed imap tests and messages assigned lambdas to functions because of pep8
Bruno Wagner [Tue, 21 Jul 2015 22:56:43 +0000 (19:56 -0300)]
Transformed assigned lambdas to functions in models and test_models because of pep8
Bruno Wagner [Tue, 21 Jul 2015 22:44:47 +0000 (19:44 -0300)]
Pep8 warns about lambdas being assigned to a variable, changed walk and sync_hooks to lambdas to real functions
Bruno Wagner [Tue, 21 Jul 2015 22:30:33 +0000 (19:30 -0300)]
Updated pep8 and fixed import and line break warnings
Bruno Wagner [Tue, 21 Jul 2015 22:16:53 +0000 (19:16 -0300)]
Fixed all the pep8 warnings in the code
Kali Kaneko [Fri, 10 Jul 2015 16:57:44 +0000 (12:57 -0400)]
[docs] add some documentation about imap regression tests
This is quite manual for the moment being, and it's not integrated into
the unittests. But it is useful to have it documented, with some luck we
can automate the process even more and add it to the CI quite soon.
Kali Kaneko [Fri, 10 Jul 2015 16:13:37 +0000 (12:13 -0400)]
[tests] get REGRESSIONS_FOLDER from env var
in order to start with a fresh folder each time.
current test script has some troubles with dirty state.
Kali Kaneko [Fri, 10 Jul 2015 16:03:55 +0000 (12:03 -0400)]
[tests] add symlink to the nested sample file
Kali Kaneko [Fri, 10 Jul 2015 15:57:48 +0000 (11:57 -0400)]
[tests] new sample mail added
For #7244, this is needed for regression tests
Kali Kaneko [Thu, 9 Jul 2015 16:03:22 +0000 (12:03 -0400)]
[style] slightly more meaningful test module name
Kali Kaneko [Thu, 9 Jul 2015 16:01:53 +0000 (12:01 -0400)]
[debug] add some more debug info to the regressions script
Kali Kaneko [Fri, 10 Jul 2015 16:41:14 +0000 (12:41 -0400)]
[feature] add very basic support for message sequence numbers
this is just the bare minimum implementation of MSN (message sequence
numbers). It is not enough feature-wise, but I'm doing it now just to
support testing with the default imap client that we're using with the
regression tests.
Kali Kaneko [Fri, 10 Jul 2015 16:01:40 +0000 (12:01 -0400)]
[bug] Return the first cdoc if no body found
In the case of a message with just one non-text attachment, something
has to be returned for the body payload. (For instance, a message with
only one image).
Kali Kaneko [Thu, 9 Jul 2015 19:41:23 +0000 (15:41 -0400)]
[bug] do not raise if the pending insert cannot be removed
Kali Kaneko [Fri, 10 Jul 2015 16:47:21 +0000 (12:47 -0400)]
[bug] fix keyerror when inserting msg on pending_inserts dict
The decission to index the pending_inserts dict by message-id is a bit
brittle. I assume any well-formed message in the RealWorld (tm) will
have this header, but many samples used in the tests will break this
assumption.
Kali Kaneko [Fri, 10 Jul 2015 16:44:16 +0000 (12:44 -0400)]
[bug] workaround for off-by-one error on nested multipart
For some reason that I haven't discovered yet, nested multipart is
hitting an off-by-one error (that had been wrongly ammended in a
previous commit, breaking many other cases but fixing the particular
Mail.app sample I was working with). This is just a temporary hack
to make all the current regression tests happy, but further
investigation is needed to discover the cause of the off-by-one part
retrieval solved and correctly documented.
Kali Kaneko [Wed, 8 Jul 2015 16:47:04 +0000 (12:47 -0400)]
[bug] fix the rendering of nested multipart
This commit fix a very simplistic and until now broken handling of
nested multipart that went undetected due to the structure of the mails
used in tests until now. Incidentally, the way that Mail.app structures
attachments made this bug noticeable.
There was also an off-by-one indexing error when retrieving the subpart
message for a given subpart.
Be aware that the current implementation will only handle correctly 2
levels of multipart nesting. Extending beyond in a more generic way will
need further work.
Closes: #7244
Ivan Alejandro [Fri, 10 Jul 2015 20:11:58 +0000 (17:11 -0300)]
[pkg] bump dependencies
Ivan Alejandro [Fri, 10 Jul 2015 20:09:46 +0000 (17:09 -0300)]
[pkg] fold in changes