Commit Graph

152 Commits

Author SHA1 Message Date
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
Martin Rusev
48cdd8318e Merge pull request #65 from sethbrin/master
fix bug in the logger of decode_mail_header
2016-02-27 18:24:18 +02:00
sethbrin
2dee895954 fix bug in the logger of decode_mail_header 2016-02-27 20:21:36 +08:00
Martin Rusev
438f8ea4b8 Merge pull request #63 from mmulqueen/master
Attachments cannot be multipart messages, so check this.
2016-02-12 21:07:28 +02:00
Michael Mulqueen
26fe1c9781 Attachments cannot be multipart messages, so check this. 2016-02-12 13:08:27 +00:00
Martin Rusev
8972988663 Merge pull request #62 from ErwinJunge/master
More unicode fixes
2016-02-03 21:07:54 +02:00
Erwin Junge
f1d08efaa3 More unicode fixes 2016-02-03 16:43:20 +01:00
martinrusev
418ffb8439 Update version and push to pypi 2015-12-12 12:14:42 +02:00
Martin Rusev
67d4fe0e9e Merge pull request #59 from ErwinJunge/master
Fix unicode support
2015-10-29 22:16:48 +02:00
Erwin Junge
662e458c1d Fix unicode support 2015-10-29 20:08:44 +01:00
Martin Rusev
cb9f99c1fe Update .travis.yml 2015-10-22 09:07:52 +03:00
Martin Rusev
4aa7648736 Merge pull request #58 from hombit/patch-2
Bugfix for python 3
2015-10-22 09:05:43 +03:00
Konstantin Malanchev
2e9d47223f Bugfix for python 3
Fix big from issue #52:
https://github.com/martinrusev/imbox/issues/52
2015-10-21 20:13:31 +03:00
Martin Rusev
5e11aa55e4 Merge pull request #57 from ErwinJunge/master
Improve image support
2015-10-20 22:47:41 +03:00
Erwin Junge
d53f1d0d23 Add support for getting filename from content-type 2015-10-20 13:00:10 +02:00
Erwin Junge
440d73ffe7 Add support for 'image' type 2015-10-20 12:45:28 +02:00
Martin Rusev
603ff7daf9 Merge pull request #53 from wkiser/master
Adding port parameter to Imbox
2015-07-15 22:07:53 +03:00
Warren Kiser
a2ca2ae6ab Adding port parameter to Imbox 2015-07-15 14:54:11 -04:00
Martin Rusev
37a3e124dc Merge pull request #51 from eliangcs/master
Fix some errors appeared on Python 3.4
2015-06-23 13:12:27 +03:00
Chang-Hung Liang
1eadc47221 Fix Python 3.4 errors 2015-06-23 16:35:50 +08:00
Martin Rusev
02f94a8e23 Merge pull request #49 from graingerkid/master
Logging throwing encoding error.
2015-06-16 17:46:58 +03:00
graingerkid
6cedd89711 Merge pull request #1 from graingerkid/graingerkid-patch-1
Update parser.py
2015-06-16 15:10:48 +01:00
graingerkid
be3bdd3f5f Update parser.py 2015-06-16 15:09:53 +01:00
Martin Rusev
01463c7ba0 Merge pull request #48 from NotANormalNerd/master
Add logging to imbox
2015-06-13 15:16:14 +03:00
Dennis Schmalacker
ccc4743c15 Add logging to imbox 2015-06-12 22:42:15 +02:00