]>
khamidou — GitHub mirrors - flanker.git/log
Russell Jones [Mon, 13 Jul 2015 22:04:13 +0000 (22:04 +0000)]
Merge branch 'master' into stable
Russell Jones [Mon, 13 Jul 2015 21:59:24 +0000 (21:59 +0000)]
Updated DNSQ version which handles non-existant TLDs.
Jeremy Schlatter [Thu, 11 Jun 2015 19:55:18 +0000 (12:55 -0700)]
version bump
Jeremy Schlatter [Thu, 11 Jun 2015 18:21:12 +0000 (11:21 -0700)]
fix exception in serialization of messages with malformed headers
flanker.mime.create.from_string does not fully parse message headers.
Instead, headers are parsed lazily the first time they are accessed. So
even though flanker.mime.create.from_string does not support malformed
headers, this isn't a problem if they are never accessed.
Commits
9c89b875dc0eafc01c7f9725d5db5aff8f798f70 and
cd271929bf831999c40e616da3dfacd3694eae56 caused headers to be accessed
every time a message is serialized. This made it impossible to parse and
then re-serialize a message with broken headers, even though this used
to be possible if the headers were never accessed after parsing.
This commit brings back that option: it is again possible to parse and
then re-serialize a message with broken headers.
Jeremy Schlatter [Wed, 10 Jun 2015 00:57:18 +0000 (17:57 -0700)]
version bump
Jeremy Schlatter [Wed, 10 Jun 2015 00:09:40 +0000 (17:09 -0700)]
work harder to avoid re-serializing headers
**Purpose**
We want to avoid re-serializing parsed messages, for two reasons:
1. It's slow. We already have the original text, so if we can output it
as-is we save a bunch of work.
2. It canonicalizes headers. This can break DKIM signatures, which hurts
deliverability.
**Implementation**
This commit does three things:
1. `message.headers["some-header"] = "some value"` now causes a prepend
if "some-header" is not present in the message yet. Prepends are
better than arbitrary insertions, because they do not force us to
re-serialize the rest of the message.
2. `message.headers.add("some-header, "some value")` now causes a
prepend, for the same reason as 1. This previously added the header
at the end of the list instead. I am assuming this behavior change is OK.
3. `message.body = message.body` no longer causes the message to be
marked as changed.
Related commit:
9c89b875dc0eafc01c7f9725d5db5aff8f798f70
Jesse Spears [Tue, 2 Jun 2015 18:42:30 +0000 (11:42 -0700)]
Version bump to v0.4.30
Jesse Spears [Tue, 2 Jun 2015 18:23:52 +0000 (11:23 -0700)]
Merge pull request #79 from aroberts/fix-equality
fix bug with != operator against a string (#78)
Jeremy Schlatter [Tue, 19 May 2015 19:07:39 +0000 (12:07 -0700)]
Merge branch 'master' into stable
Conflicts:
setup.py
Jeremy Schlatter [Tue, 19 May 2015 19:05:57 +0000 (12:05 -0700)]
version bump
Jeremy Schlatter [Tue, 19 May 2015 17:52:44 +0000 (10:52 -0700)]
break long line
Jeremy Schlatter [Wed, 11 Feb 2015 00:52:16 +0000 (16:52 -0800)]
don't re-serialize the whole message when headers have been prepended but nothing else has changed
Jesse Spears [Tue, 19 May 2015 01:15:53 +0000 (18:15 -0700)]
Merge pull request #89 from mailgun/jesse/gmail-reject-consecutive-dots
Reject consecutive dots (.) in gmail addresses
Jesse Spears [Tue, 19 May 2015 01:02:29 +0000 (18:02 -0700)]
validate(): reject consecutive dots in local name
Jeremy Schlatter [Tue, 10 Mar 2015 22:57:35 +0000 (15:57 -0700)]
version bump
Jeremy Schlatter [Tue, 10 Mar 2015 22:57:15 +0000 (15:57 -0700)]
version bump
Jeremy Schlatter [Tue, 10 Mar 2015 22:56:28 +0000 (15:56 -0700)]
Merge branch 'master' into stable
Russell Jones [Tue, 10 Mar 2015 22:41:29 +0000 (15:41 -0700)]
Merge pull request #85 from lmcnearney/feature/live
Allow hotmail addresses to begin with a number
Russell Jones [Tue, 10 Mar 2015 22:40:22 +0000 (15:40 -0700)]
Merge pull request #86 from mailgun/jeremy/yahoo-brazil
add yahoo.com.br to known domains list
Jeremy Schlatter [Tue, 10 Mar 2015 18:55:27 +0000 (11:55 -0700)]
add yahoo.com.br to known domains list
Lance McNearney [Thu, 19 Feb 2015 15:24:22 +0000 (07:24 -0800)]
Allow hotmail addresses to begin with a number
Jeremy Schlatter [Tue, 10 Feb 2015 23:47:29 +0000 (15:47 -0800)]
Merge pull request #81 from bulatb/patch-1
Typo fix
Bulat Bochkariov [Mon, 2 Feb 2015 05:10:41 +0000 (21:10 -0800)]
Typo fix
Russell Jones [Mon, 26 Jan 2015 21:07:04 +0000 (21:07 +0000)]
Merge branch 'master' into stable
Russell Jones [Mon, 26 Jan 2015 21:05:35 +0000 (13:05 -0800)]
Merge pull request #76 from mailgun/rjones/content-type-override
Override tricky content types.
Russell Jones [Tue, 20 Jan 2015 00:40:33 +0000 (16:40 -0800)]
Added support for overriding heuristic content type discovery for tricky
content types like bzip2.
Andrew Roberts [Fri, 23 Jan 2015 17:24:01 +0000 (12:24 -0500)]
fix bug with != operator against a string
Russell Jones [Wed, 14 Jan 2015 01:12:28 +0000 (01:12 +0000)]
Version bump and minor refactor.
Russell Jones [Wed, 14 Jan 2015 01:16:12 +0000 (17:16 -0800)]
Merged master.
Russell Jones [Wed, 14 Jan 2015 01:12:28 +0000 (01:12 +0000)]
Version bump and minor refactor.
Russell Jones [Wed, 14 Jan 2015 01:06:06 +0000 (17:06 -0800)]
Merge pull request #67 from inboxapp/master
Fix for decoding errors if the list includes a non-ASCII string.
Christine Spang [Tue, 13 Jan 2015 21:47:01 +0000 (13:47 -0800)]
Fix parse_list() to handle Address objects with unicode properly also.
Christine Spang [Tue, 13 Jan 2015 21:45:59 +0000 (13:45 -0800)]
Failing test case for case where parse_list() received Address object.
Russell Jones [Mon, 12 Jan 2015 23:11:38 +0000 (15:11 -0800)]
Merge pull request #72 from mailgun/cache_postives_only
If unable to contact a host, don't cache that result.
Jason E. Aten [Thu, 27 Nov 2014 02:03:29 +0000 (18:03 -0800)]
If unable to connect to a MX server, don't cache that result.
Christine Spang [Sat, 10 Jan 2015 19:28:08 +0000 (11:28 -0800)]
Add regression test for non-ascii email address parsing.
Michael Grinich [Mon, 3 Nov 2014 00:31:50 +0000 (16:31 -0800)]
Fix for decoding errors if the list includes a non-ASCII string.
Russell Jones [Tue, 16 Dec 2014 01:23:55 +0000 (17:23 -0800)]
Removing comments.
Russell Jones [Mon, 15 Dec 2014 22:42:26 +0000 (14:42 -0800)]
Don't cache false responses.
Jeremy Schlatter [Wed, 3 Dec 2014 01:14:04 +0000 (17:14 -0800)]
Merge pull request #71 from jeffwidman/patch-1
Fix two typos
Jeremy Schlatter [Wed, 3 Dec 2014 01:06:17 +0000 (17:06 -0800)]
Merge branch 'master' into stable
Conflicts:
setup.py
Jeremy Schlatter [Wed, 3 Dec 2014 01:05:27 +0000 (17:05 -0800)]
bump version
Jeremy Schlatter [Wed, 3 Dec 2014 00:08:29 +0000 (16:08 -0800)]
Label broken MIME attachments as ContentType: application/octet-stream rather than ContentType: text/plain
Jeremy Schlatter [Tue, 2 Dec 2014 23:37:44 +0000 (15:37 -0800)]
Don't throw an exception for .eml attachments with broken MIME.
This function used to fail when creating an attachment that happened to
contain text with broken MIME. Now when that happens, we just encode it
and call the attachment type 'text/plain'.
Jeff Widman [Wed, 19 Nov 2014 00:26:53 +0000 (16:26 -0800)]
Fix two typos
Roman Tkachenko [Wed, 5 Nov 2014 23:13:30 +0000 (15:13 -0800)]
Bump version.
Roman Tkachenko [Wed, 5 Nov 2014 23:13:12 +0000 (15:13 -0800)]
Bump version.
Roman Tkachenko [Wed, 5 Nov 2014 23:10:58 +0000 (15:10 -0800)]
Merge branch 'roman/cchardet' into stable
Roman [Wed, 5 Nov 2014 23:10:37 +0000 (15:10 -0800)]
Merge pull request #68 from mailgun/roman/cchardet
Detect encodings with cchardet which is much faster (with fallback to ch...
Roman Tkachenko [Wed, 5 Nov 2014 22:56:00 +0000 (14:56 -0800)]
Detect encodings with cchardet which is much faster (with fallback to chardet).
Jeremy Schlatter [Thu, 30 Oct 2014 23:05:56 +0000 (16:05 -0700)]
fix merge
Jeremy Schlatter [Thu, 30 Oct 2014 23:04:48 +0000 (16:04 -0700)]
Merge branch 'master' into stable
Conflicts:
setup.py
Jeremy Schlatter [Thu, 30 Oct 2014 23:03:15 +0000 (16:03 -0700)]
Merge pull request #66 from mailgun/jeremy/charset
don't default to ascii charset for non-text Content-Types
Jeremy Schlatter [Wed, 29 Oct 2014 01:41:09 +0000 (18:41 -0700)]
version bump
Jeremy Schlatter [Wed, 29 Oct 2014 01:38:48 +0000 (18:38 -0700)]
don't default to ascii charset for non-text Content-Types
Jeremy Schlatter [Wed, 22 Oct 2014 23:54:17 +0000 (16:54 -0700)]
Merge pull request #65 from mailgun/style
Remove spaces before function calls
Jeremy Schlatter [Wed, 22 Oct 2014 01:45:08 +0000 (18:45 -0700)]
remove spaces before function calls
Jeremy Schlatter [Wed, 22 Oct 2014 01:33:47 +0000 (18:33 -0700)]
fix typos
Jeremy Schlatter [Wed, 22 Oct 2014 01:31:43 +0000 (18:31 -0700)]
fix typo
Jeremy Schlatter [Wed, 22 Oct 2014 00:11:02 +0000 (17:11 -0700)]
fix typo
Russell Jones [Thu, 2 Oct 2014 00:02:15 +0000 (00:02 +0000)]
Mock network based tests so they are fast, deterministic, and can run
with no network access.
Russell Jones [Wed, 1 Oct 2014 23:59:53 +0000 (23:59 +0000)]
Version bump, I always forget to version bump...
Russell Jones [Wed, 1 Oct 2014 23:57:29 +0000 (23:57 +0000)]
Mock network based tests so they are fast, deterministic, and can run
with no network access.
Jeremy Schlatter [Mon, 22 Sep 2014 20:32:25 +0000 (13:32 -0700)]
Merge branch 'master' into stable
Conflicts:
setup.py
Jeremy Schlatter [Mon, 22 Sep 2014 20:09:47 +0000 (13:09 -0700)]
Add option to headers.transform for decoding encoded-words
Jeremy Schlatter [Wed, 17 Sep 2014 18:40:03 +0000 (11:40 -0700)]
add .swp to .gitignore
Maxim Vladimirsky [Fri, 1 Aug 2014 07:59:09 +0000 (11:59 +0400)]
Merge branch 'master' into stable
Conflicts:
setup.py
Maxim Vladimirsky [Fri, 1 Aug 2014 07:58:13 +0000 (11:58 +0400)]
Bump version
Maxim Vladimirsky [Fri, 1 Aug 2014 07:52:51 +0000 (11:52 +0400)]
Merge pull request #55 from mailgun/maxim/develop
Fix FallbackHeaders.transform
Maxim Vladimirsky [Thu, 31 Jul 2014 17:02:24 +0000 (21:02 +0400)]
Fix FallbackHeaders.transform
Maxim Vladimirsky [Thu, 31 Jul 2014 08:02:55 +0000 (12:02 +0400)]
Merge branch 'master' into stable
Conflicts:
setup.py
Maxim Vladimirsky [Thu, 31 Jul 2014 08:02:02 +0000 (12:02 +0400)]
Make sure that only string header values are converted
Maxim Vladimirsky [Wed, 30 Jul 2014 06:32:35 +0000 (10:32 +0400)]
Merge branch 'master' into stable
Conflicts:
setup.py
Maxim Vladimirsky [Wed, 30 Jul 2014 06:30:57 +0000 (10:30 +0400)]
Merge pull request #24 from mailgun/rjones/header-fix
Store raw header values to preserve encoding
Maxim Vladimirsky [Wed, 30 Jul 2014 06:22:04 +0000 (10:22 +0400)]
Do not decode FallbackMimeHeaders
Russell Jones [Tue, 31 Dec 2013 00:21:31 +0000 (16:21 -0800)]
Store raw header values to preserve encoding
Maxim Vladimirsky [Wed, 30 Jul 2014 05:32:36 +0000 (09:32 +0400)]
Merge pull request #53 from mailgun/maxim/develop
Make EmailAddress.display_name to be an arbitrary string
Maxim Vladimirsky [Fri, 25 Jul 2014 17:46:50 +0000 (21:46 +0400)]
Make EmailAddress.display_name to be a arbitrary string
Maxim Vladimirsky [Thu, 24 Jul 2014 08:15:37 +0000 (12:15 +0400)]
Fix doc strings
Maxim Vladimirsky [Tue, 29 Jul 2014 06:02:55 +0000 (10:02 +0400)]
Merge pull request #54 from mailgun/maxim/fix
Allow `Content-Type` header value be of ContentType class
Maxim Vladimirsky [Mon, 28 Jul 2014 10:47:55 +0000 (14:47 +0400)]
Allow `Content-Type` header value be of ContentType class
Maxim Vladimirsky [Mon, 21 Jul 2014 12:42:47 +0000 (16:42 +0400)]
Merge branch 'master' into stable
Maxim Vladimirsky [Mon, 21 Jul 2014 12:42:09 +0000 (16:42 +0400)]
Merge pull request #52 from mailgun/maxim/develop
Make sure that binary part bodies are returned as `string` by FallbackMimePart
Maxim Vladimirsky [Mon, 21 Jul 2014 11:11:58 +0000 (15:11 +0400)]
Make sure that binary part bodies are returned as `string` by FallbackMimePart
Maxim Vladimirsky [Mon, 21 Jul 2014 06:57:29 +0000 (10:57 +0400)]
Merge branch 'master' into stable
Conflicts:
flanker/mime/message/fallback/part.py
flanker/mime/message/part.py
tests/mime/message/fallback/fallback_test.py
Maxim Vladimirsky [Mon, 21 Jul 2014 06:53:53 +0000 (10:53 +0400)]
Merge pull request #50 from mailgun/maxim/tokenizer
Ignore false Content-Type headers in multipart epilogues
Maxim Vladimirsky [Wed, 16 Jul 2014 06:20:52 +0000 (10:20 +0400)]
Fix a typo in the RichPartMixin name
Maxim Vladimirsky [Wed, 16 Jul 2014 14:34:32 +0000 (18:34 +0400)]
Ignore false Content-Type headers
It is ignored in mesage/part bodies as well as in multipart
preambles and epilogues.
Maxim Vladimirsky [Sat, 19 Jul 2014 15:29:43 +0000 (19:29 +0400)]
Merge pull request #51 from mailgun/maxim/develop
Make FallbackHeaders interface match with MimeHeaders
Maxim Vladimirsky [Wed, 16 Jul 2014 06:20:52 +0000 (10:20 +0400)]
Make FallbackHeaders interface match with MimeHeaders
Maxim Vladimirsky [Wed, 16 Jul 2014 06:20:52 +0000 (10:20 +0400)]
Bump version
Maxim Vladimirsky [Wed, 16 Jul 2014 06:20:52 +0000 (10:20 +0400)]
Make FallbackMimePart interface match with MimePart
To achieve that common functionality has been extracted to
RichPartMixin that is mixed to both classes.
Alex Klizhentas [Wed, 16 Jul 2014 20:56:29 +0000 (13:56 -0700)]
Merge pull request #49 from mailgun/maxim/develop
Make FallbackMimePart interface match with MimePart
Maxim Vladimirsky [Tue, 15 Jul 2014 13:52:20 +0000 (17:52 +0400)]
Make FallbackMimePart interface match with MimePart
To achieve that common functionality has been extracted to
RichPartMixin that is mixed to both classes.
Russell Jones [Tue, 15 Jul 2014 23:32:28 +0000 (16:32 -0700)]
Brought in latest changes from master and moved mock and nose
to tests_requires instead of install_requires.
Russell Jones [Fri, 11 Jul 2014 07:20:33 +0000 (00:20 -0700)]
Updated address length check to 1024 characters because many unsubscribe
links were much larger than our old limit (which was already 4x the RFC limit).
New limit is 16x the RFC limit.
Bumped the version of dnsq and expiringdict.
Moved mock and nose from install_requires to tests_require.
Russell Jones [Tue, 8 Jul 2014 07:04:43 +0000 (00:04 -0700)]
Updated MX records for iCloud.
Russell Jones [Fri, 11 Jul 2014 21:02:55 +0000 (14:02 -0700)]
Merge pull request #48 from alex/supports-pypy
Run tests against PyPy as well
Alex Gaynor [Fri, 11 Jul 2014 19:59:24 +0000 (12:59 -0700)]
Run tests against PyPy as well
Russell Jones [Thu, 10 Jul 2014 21:28:19 +0000 (14:28 -0700)]
Merge pull request #42 from mailgun/anton/typo-fix
Fix typo in utils.py