Commit Graph

276 Commits

Author SHA1 Message Date
Stephane Blondon
568dcb028a Imbox() usable as with statement 2017-09-17 22:57:05 +02:00
Martin Rusev
c63378df5a Merge pull request #91 from sblondon/master
Include README in .rst format
2017-09-17 14:39:21 +02:00
Stephane Blondon
64df2be0b5 Include README in .rst format 2017-09-17 13:46:19 +02:00
Martin Rusev
31659b9aa2 Merge pull request #90 from sblondon/master
Convert README to reStructuredText format for pypi
2017-09-16 23:09:12 +02:00
Stéphane Blondon
85e1b088c4 Convert README to reStructuredText format 2017-09-16 18:16:50 +02:00
Stéphane Blondon
838da2af20 Replace tab by 4 spaces 2017-09-16 17:05:53 +02:00
Martin Rusev
cad142734e Merge pull request #89 from sblondon/master
Explicit object inheritance in not necessary in python3
2017-09-16 13:39:51 +02:00
Stéphane Blondon
19548d88d4 object inheritance in not necessary in python3 2017-09-16 11:55:40 +02:00
Martin Rusev
06149d64fc Merge pull request #88 from sblondon/master
Remove instructions needed for python2 compatibility
2017-09-15 15:34:33 +02:00
Stéphane Blondon
43dff01fa3 Replace six dependancy by python3 code only 2017-09-15 14:38:27 +02:00
Stéphane Blondon
fd55ac54c5 Remove instructions needed for python2 compatibility 2017-09-15 14:26:13 +02:00
Martin Rusev
d74dbdd26a Merge pull request #87 from sblondon/master
Print in python 3 needs parenthesis
2017-09-14 20:53:56 +02:00
Stéphane Blondon
5b0602c231 print in python 3 needs parenthesis 2017-09-14 18:11:48 +02:00
Martin Rusev
cc179c365d Merge pull request #85 from sblondon/master
Update link to python3 documentation
2017-09-11 11:25:36 +02:00
Stéphane Blondon
c4680ef253 Update link to python3 documentation 2017-09-11 11:10:04 +02:00
Martin Rusev
02cbf574dd Update README.md 2017-03-07 14:09:39 +01:00
Martin Rusev
44715ea408 Update .travis.yml 2017-03-07 14:05:10 +01:00
Martin Rusev
8533451cbd Merge pull request #81 from SylvainDe/master
Add most recent Python versions in Travis CI
2017-03-07 14:04:56 +01:00
Sylvain
daee6a12c5 Add most recent Python versions in Travis CI
Add more recent Python versions including development branches and nightly build.
2017-03-07 11:57:44 +01:00
Martin Rusev
89a7f8eb28 Merge pull request #78 from AdamNiederer/patch-2
Permissively Decode Emails
2017-01-28 08:48:06 +01:00
Adam Niederer
ba913fe31d Permissively Decode Emails
Email providers throw all kinds of garbage in their emails - even Gmail and Thunderbird send invalid UTF-8 in certain cases. Not throwing UnicodeErrors every time an email provider screws up their UTF-8 would really help QOL when using this library.
2017-01-27 23:51:32 -05:00
Martin Rusev
d792a28254 Update CHANGELOG.md 2016-12-06 07:12:27 +01:00
Martin Rusev
7f23694977 Merge pull request #75 from bhtucker/master
Make Parsing Policy Configurable
2016-12-06 07:04:33 +01:00
Benson Tucker
096554342c clarify version support (2.7 is unsupported) and show that policies did not exist before 3.3 2016-12-05 18:57:23 -05:00
Benson Tucker
7e836fc81b add parsing policy as option to imbox constructor / parse_email; add test showing a case where you might set a policy 2016-12-05 18:44:32 -05:00
Martin Rusev
6a8f9cda54 Update README.md 2016-11-24 15:32:28 +01:00
Martin Rusev
43f00342aa Update README.md 2016-11-24 15:29:34 +01:00
Martin Rusev
688d549894 Merge pull request #74 from cgi1/master
Fixes #73
2016-11-24 10:15:18 +01:00
cgi
6942b9d3d2 Fixes #73 2016-11-24 10:09:48 +01:00
Martin Rusev
4b59a2433b Merge pull request #72 from n3storm/master
Update __init__.py
2016-11-17 01:55:07 +01:00
Néstor Díaz Valencia
bcf709cdb3 Update __init__.py 2016-11-16 20:18:07 +01:00
Martin Rusev
52f3518cd2 Update setup.py 2016-10-28 10:52:57 +02:00
Martin Rusev
83a68a82e7 Update README.md 2016-10-27 17:01:16 +02:00
Martin Rusev
deda00c4c7 Update README.md 2016-10-27 17:00:25 +02:00
martinrusev
64c06c1915 Update version and push to pypi 2016-06-08 09:38:32 +03:00
martinrusev
bd15fa279a Update readme 2016-06-08 09:36:40 +03:00
martinrusev
6c6e0b6f85 Update changelog 2016-06-08 09:36:10 +03:00
martinrusev
b0b22c339a Update changelog 2016-06-08 09:35:12 +03:00
Martin Rusev
1d3536af08 Update README.md 2016-06-08 08:30:01 +02:00
Martin Rusev
784e3e84e6 Update README.md 2016-06-08 08:26:15 +02:00
Martin Rusev
cb2cde3caa Merge pull request #69 from Intevation/master
Check SSL-Context for IMAP4_SSL connections
2016-06-07 23:29:02 +02:00
Bernhard Herzog
ad085d9b82 Allow the user to supply a custom ssl context
The new ImapTransport parameter ssl_context replaces the usesslcontext
parameter and allows the user to supply their own ssl context object. If
ssl_context is not given, but ssl is true, python's default ssl context
is used. That default context is the one that actually does some
certificate checks, such as whether the hostname matches the names given
in the server's certificate and not the default context used by
IMAP4_SSL when instantiated with ssl_context=None which does not
certificate checks at all.

The Imbox class is extended with the same ssl_context parameter which is
simply passed through to ImapTransport.

This commit together with the previous commits from Dustin Demuth
changes Imbox in a slightly incompatible way: SSL-Certificates are now
checked by default whereas before they were not checked at all. This
improves security substantially but users need to be aware that working
programs might start raising exceptions due to failing certificate
checks.
2016-06-02 12:52:04 +02:00
Bernhard Herzog
adfbc2f3f2 Fix IMAP transport instantiation
This reverts the approach to IMAP transport instantiation back to how it
was done prior to 2a0117b6 which introduced the usesslcontext parameter.
This reduces code duplication and importantly make instantiation work
again because self.IMAP4 and self.IMAP4_SSL do not exist.
2016-06-02 12:51:42 +02:00
Dustin Demuth
61ca73e0e0 Fixed a condition 2016-06-02 11:15:51 +02:00
Dustin Demuth
2a0117b67f According to https://github.com/martinrusev/imbox/issues/68 the
software was altered, in order to use the systems SSL-Context as
default.

It allows to toggle the use of the SSL-Default Context. It does not
allow to use a custom context.

 Considerations:
 * If No SSL-Validation should be done, the ImboxClass should be adapted, in
   order to achieve configuration of the ssl-context. This commit does not
   contain this alteration.

 Other Changes:
 * Reformatted long lines
2016-06-02 11:00:39 +02:00
martinrusev
9dd4913ede Update on pypi 2016-04-08 12:18:17 +02:00
Martin Rusev
d6501af4ae Merge pull request #67 from oleglite/master
Fix UnicodeDecodeError when parsing headers with python 3
2016-03-27 17:41:20 +02:00
Oleg Beloglazov
9214dcf2a2 Fix UnicodeDecodeError when parsing headers with python 3 2016-03-27 17:40:52 +03:00
Martin Rusev
58f0febbf0 Merge pull request #66 from Method-B-Ltd/master
Make sure that a part is actually text before we try to decode it.
2016-03-26 19:28:00 +01:00
Michael Mulqueen
585c294b2c Make sure that a part is actually text before we try to decode it. 2016-03-26 17:16:04 +00:00