leap_mail.git
2 years agoDeprecated repo master
Ruben Pollan [Thu, 26 Oct 2017 09:08:36 +0000 (11:08 +0200)]
Deprecated repo

3 years agoMerge tag '0.4.1'
Kali Kaneko [Mon, 18 Apr 2016 15:53:18 +0000 (11:53 -0400)]
Merge tag '0.4.1'

Tag version 0.4.1

3 years ago[pkg] Update changelog 0.4.1
Kali Kaneko [Mon, 18 Apr 2016 15:51:46 +0000 (11:51 -0400)]
[pkg] Update changelog

3 years ago[pkg] bump leap deps
Kali Kaneko [Mon, 18 Apr 2016 15:41:53 +0000 (11:41 -0400)]
[pkg] bump leap deps

3 years ago[refactor] change IMAPAccount signature
Kali Kaneko [Fri, 15 Apr 2016 20:06:56 +0000 (16:06 -0400)]
[refactor] change IMAPAccount signature

for consistency with the previous Account change.

3 years ago[bug] Adds user_id to Account
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

3 years agoRemove leftover print statement
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.

3 years ago[feature] use same token for imap/stmp authentication
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

3 years ago[pkg] update to versioneer 0.16
Kali Kaneko [Fri, 1 Apr 2016 17:07:18 +0000 (13:07 -0400)]
[pkg] update to versioneer 0.16

3 years ago[feature] SMTP delivery bounces
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

3 years ago[style] pep8
Kali Kaneko [Wed, 30 Mar 2016 15:23:12 +0000 (11:23 -0400)]
[style] pep8

3 years ago[bug] Fix unread mails notification
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.

3 years ago[bug] let the inbox used in IncomingMail notify any subscribed Mailbox
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.

3 years ago[bug] emit imap-login event again
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.

3 years ago[bug] Decode attached keys so they are recognized by keymanager
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

3 years ago[bug] Fix IMAP fetch headers
Ruben Pollan [Wed, 16 Mar 2016 17:02:04 +0000 (18:02 +0100)]
[bug] Fix IMAP fetch headers

- Resolves: #7898

3 years agoMerge remote-tracking branch 'leapcode/pr/227' into develop
Kali Kaneko [Thu, 24 Mar 2016 13:29:30 +0000 (09:29 -0400)]
Merge remote-tracking branch 'leapcode/pr/227' into develop

3 years agoFix pixelated repos reference on requirements
Giovane [Tue, 5 Jan 2016 19:54:17 +0000 (17:54 -0200)]
Fix pixelated repos reference on requirements

3 years ago[style] pep8!
Kali Kaneko [Fri, 11 Mar 2016 19:06:25 +0000 (15:06 -0400)]
[style] pep8!

3 years ago[bug] specify openssl backend explicitely
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

3 years ago[feat] use fingerprint instead of key_id to address keys
Ruben Pollan [Mon, 21 Dec 2015 14:35:56 +0000 (15:35 +0100)]
[feat] use fingerprint instead of key_id to address keys

3 years ago[bug] Use the right succeed function for passthrough encrypted email
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

3 years ago[feat] Use cryptography instead of pycryptopp to reduce dependencies.
Ruben Pollan [Thu, 11 Feb 2016 00:20:33 +0000 (01:20 +0100)]
[feat] Use cryptography instead of pycryptopp to reduce dependencies.

* Resolves: #7889

3 years ago[feat] Remove debug from walk
Ruben Pollan [Thu, 11 Feb 2016 00:18:11 +0000 (01:18 +0100)]
[feat] Remove debug from walk

3 years ago[style] fix pep8
Ruben Pollan [Tue, 9 Feb 2016 16:09:14 +0000 (17:09 +0100)]
[style] fix pep8

3 years agoMerge branch 'fix_tests' into develop
Ruben Pollan [Tue, 9 Feb 2016 15:38:57 +0000 (16:38 +0100)]
Merge branch 'fix_tests' into develop

3 years ago[tests] fix missing pycryptopp dependency and mock async calls
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

3 years agoMerge branch 'verify_signature' into develop
Ruben Pollan [Mon, 8 Feb 2016 15:27:34 +0000 (16:27 +0100)]
Merge branch 'verify_signature' into develop

3 years ago[feat] Validate signature with attachments
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

3 years ago[feat] Verify plain text signed email
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

3 years ago[tests] make tests use dummy authentication
Kali Kaneko [Thu, 17 Dec 2015 05:34:26 +0000 (01:34 -0400)]
[tests] make tests use dummy authentication

3 years ago[feat] cred authentication for SMTP service
Kali Kaneko [Wed, 16 Dec 2015 05:12:30 +0000 (01:12 -0400)]
[feat] cred authentication for SMTP service

3 years ago[style] pep8
Kali Kaneko [Tue, 15 Dec 2015 20:40:46 +0000 (16:40 -0400)]
[style] pep8

3 years ago[docs] add entry about cred-based token authentication to next-changelog
Kali Kaneko [Tue, 15 Dec 2015 06:42:14 +0000 (02:42 -0400)]
[docs] add entry about cred-based token authentication to next-changelog

3 years ago[fix] dummy credentials for tests
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.

3 years ago[feat] credentials handling: use twisted.cred
Kali Kaneko [Fri, 27 Nov 2015 01:27:23 +0000 (21:27 -0400)]
[feat] credentials handling: use twisted.cred

3 years ago[docs] document bugfix on pr 215 by bwagner
Kali Kaneko [Mon, 14 Dec 2015 22:40:31 +0000 (18:40 -0400)]
[docs] document bugfix on pr 215 by bwagner

3 years agoFixed the get_body logic
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

3 years ago[feat] make events multi-user aware
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

4 years ago[docs] add version badge for pypi
Kali Kaneko [Thu, 29 Oct 2015 15:02:09 +0000 (11:02 -0400)]
[docs] add version badge for pypi

4 years ago[pkg] fold in changes 0.4.0
Ivan Alejandro [Tue, 27 Oct 2015 20:24:26 +0000 (17:24 -0300)]
[pkg] fold in changes

4 years ago[pkg] Add some entries to the CHANGELOG for 0.4.0 release
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

4 years ago[bug] fix slow appends
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.

4 years ago[bug] fail gracefully if fetch fails
Kali Kaneko [Mon, 28 Sep 2015 20:03:43 +0000 (16:03 -0400)]
[bug] fail gracefully if fetch fails

Related: #7495

4 years ago[bug] signal expired auth token to the GUI
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

4 years ago[feat] disable local-only bind on docker container
Ivan Alejandro [Wed, 23 Sep 2015 18:36:32 +0000 (15:36 -0300)]
[feat] disable local-only bind on docker container

- Related: #7471

4 years ago[docs] update interfaces documentation
Kali Kaneko [Tue, 22 Sep 2015 21:53:40 +0000 (17:53 -0400)]
[docs] update interfaces documentation

4 years ago[refactor] avoid circular import due to rfc3156
Kali Kaneko [Tue, 22 Sep 2015 21:38:48 +0000 (17:38 -0400)]
[refactor] avoid circular import due to rfc3156

4 years ago[docs] update docs to 0.4.0 release
Kali Kaneko [Tue, 22 Sep 2015 19:29:23 +0000 (15:29 -0400)]
[docs] update docs to 0.4.0 release

4 years agoMerge remote-tracking branch 'leapcode/pr/206' into develop
Kali Kaneko [Wed, 23 Sep 2015 15:45:58 +0000 (11:45 -0400)]
Merge remote-tracking branch 'leapcode/pr/206' into develop

4 years ago[bug] Make _collection_mapping a instance variable
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

4 years ago[style] fix pep8 warnings
Folker Bernitt [Wed, 16 Sep 2015 08:13:12 +0000 (10:13 +0200)]
[style] fix pep8 warnings

4 years ago[refactor] log the added key explicitely
Kali Kaneko [Tue, 22 Sep 2015 18:45:57 +0000 (14:45 -0400)]
[refactor] log the added key explicitely

4 years ago[bug] don't extract openpgp header if valid attached key
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

4 years ago[bug] filter out Nones in the sequence of messages
Kali Kaneko [Mon, 21 Sep 2015 21:22:23 +0000 (17:22 -0400)]
[bug] filter out Nones in the sequence of messages

4 years ago[doc] document return values
Kali Kaneko [Mon, 21 Sep 2015 20:37:25 +0000 (16:37 -0400)]
[doc] document return values

4 years ago[style] clean up incoming/service.py
Ruben Pollan [Wed, 16 Sep 2015 10:31:50 +0000 (12:31 +0200)]
[style] clean up incoming/service.py

4 years ago[bug] don't fail importing mismatched attached key
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

4 years ago[pkg] bump leap versions needed
Kali Kaneko [Tue, 15 Sep 2015 03:33:16 +0000 (23:33 -0400)]
[pkg] bump leap versions needed

4 years ago[feat] use async events api
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

4 years agoMerge pixelated's X-Leap-Encryption into develop
Ruben Pollan [Thu, 10 Sep 2015 10:19:08 +0000 (12:19 +0200)]
Merge pixelated's X-Leap-Encryption into develop

4 years ago[feature] improve getmail utility
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

4 years ago[style] fixing pep8 warnings
Duda Dornelles [Wed, 2 Sep 2015 19:20:10 +0000 (16:20 -0300)]
[style] fixing pep8 warnings

4 years ago[feat] adding encryption header to msg before saving
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.

4 years ago[pkg] fold in changes 0.4.0rc2
Ivan Alejandro [Wed, 26 Aug 2015 21:09:22 +0000 (18:09 -0300)]
[pkg] fold in changes

4 years ago[tests] properly skip not implemented tests, do not raise
Kali Kaneko [Fri, 21 Aug 2015 03:45:19 +0000 (23:45 -0400)]
[tests] properly skip not implemented tests, do not raise

4 years ago[style] pep8 excludes + fixes
Kali Kaneko [Tue, 18 Aug 2015 15:29:57 +0000 (11:29 -0400)]
[style] pep8 excludes + fixes

4 years ago[docs] add folker to authors + pep8
Kali Kaneko [Wed, 12 Aug 2015 02:58:34 +0000 (22:58 -0400)]
[docs] add folker to authors + pep8

4 years ago[bug] Fix missing _normailize_dict in DocumentWrapper constructor.
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.

4 years ago[bug] Fix typo in content-transfer-encoding in walk.py.
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.

4 years ago[feat] WHEELHOUSE can be a url + --use-leap-wheels
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

4 years ago[style] pep8 fixes + pep8 script
Kali Kaneko [Tue, 4 Aug 2015 16:18:50 +0000 (12:18 -0400)]
[style] pep8 fixes + pep8 script

4 years ago[tests] Removed outdated test
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

4 years ago[tests] Skipped tests that were not implemented
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

4 years ago[tests] Added requirements-latest help HEAD development
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

4 years ago[feat] use wheels to install dependencies
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

4 years agoMerge remote-tracking branch 'leapcode/pr/188' into develop
Kali Kaneko [Mon, 3 Aug 2015 18:27:48 +0000 (14:27 -0400)]
Merge remote-tracking branch 'leapcode/pr/188' into develop

4 years ago[bug] fixed syntax error in models.py
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.

4 years ago[pkg] add script to install base requirements
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

4 years ago[pkg] add AUTHORS file + one-liner to generate it
Kali Kaneko [Tue, 28 Jul 2015 02:12:01 +0000 (22:12 -0400)]
[pkg] add AUTHORS file + one-liner to generate it

4 years ago[pkg] separate leap requirements
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

4 years agoChanged imap tests and messages assigned lambdas to functions because of pep8
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

4 years agoTransformed assigned lambdas to functions in models and test_models 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

4 years agoPep8 warns about lambdas being assigned to a variable, changed walk and sync_hooks...
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

4 years agoUpdated pep8 and fixed import and line break warnings
Bruno Wagner [Tue, 21 Jul 2015 22:30:33 +0000 (19:30 -0300)]
Updated pep8 and fixed import and line break warnings

4 years agoFixed all the pep8 warnings in the code
Bruno Wagner [Tue, 21 Jul 2015 22:16:53 +0000 (19:16 -0300)]
Fixed all the pep8 warnings in the code

4 years ago[docs] add some documentation about imap regression tests
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.

4 years ago[tests] get REGRESSIONS_FOLDER from env var
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.

4 years ago[tests] add symlink to the nested sample file
Kali Kaneko [Fri, 10 Jul 2015 16:03:55 +0000 (12:03 -0400)]
[tests] add symlink to the nested sample file

4 years ago[tests] new sample mail added
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

4 years ago[style] slightly more meaningful test module name
Kali Kaneko [Thu, 9 Jul 2015 16:03:22 +0000 (12:03 -0400)]
[style] slightly more meaningful test module name

4 years ago[debug] add some more debug info to the regressions script
Kali Kaneko [Thu, 9 Jul 2015 16:01:53 +0000 (12:01 -0400)]
[debug] add some more debug info to the regressions script

4 years ago[feature] add very basic support for message sequence numbers
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.

4 years ago[bug] Return the first cdoc if no body found
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).

4 years ago[bug] do not raise if the pending insert cannot be removed
Kali Kaneko [Thu, 9 Jul 2015 19:41:23 +0000 (15:41 -0400)]
[bug] do not raise if the pending insert cannot be removed

4 years ago[bug] fix keyerror when inserting msg on pending_inserts dict
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.

4 years ago[bug] workaround for off-by-one error on nested multipart
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.

4 years ago[bug] fix the rendering of nested multipart
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

4 years ago[pkg] bump dependencies 0.4.0rc1
Ivan Alejandro [Fri, 10 Jul 2015 20:11:58 +0000 (17:11 -0300)]
[pkg] bump dependencies

4 years ago[pkg] fold in changes
Ivan Alejandro [Fri, 10 Jul 2015 20:09:46 +0000 (17:09 -0300)]
[pkg] fold in changes