]> khamidou — GitHub mirrors - flanker.git/log
flanker.git
10 years agofix file name for inline attachments
Sergey Obukhov [Tue, 1 Dec 2015 01:31:03 +0000 (17:31 -0800)]
fix file name for inline attachments

11 years agoVersion bump for release.
Russell Jones [Fri, 9 Oct 2015 20:07:39 +0000 (20:07 +0000)]
Version bump for release.

11 years agoMerge pull request #105 from glyph/dkim-redux
Russell Jones [Fri, 9 Oct 2015 20:03:12 +0000 (13:03 -0700)]
Merge pull request #105 from glyph/dkim-redux

DKIM redux

11 years agouse non-deprecated name for cryptography method
Glyph [Fri, 18 Sep 2015 09:19:19 +0000 (02:19 -0700)]
use non-deprecated name for cryptography method

11 years agoMerge 'dkim' of alex/flanker into dkim-redux
Glyph [Fri, 18 Sep 2015 09:09:14 +0000 (02:09 -0700)]
Merge 'dkim' of alex/flanker into dkim-redux

11 years agoBumped version of dnsq.
Russell Jones [Fri, 21 Aug 2015 21:41:56 +0000 (21:41 +0000)]
Bumped version of dnsq.

11 years agoAllow star characters in the type or subtype of a Content-Type header v0.4.35
Jeremy Schlatter [Wed, 5 Aug 2015 00:29:21 +0000 (17:29 -0700)]
Allow star characters in the type or subtype of a Content-Type header

RFC 1521 does not disallow star characters in the type or subtype of a
Content-Type header.

11 years agoversion bump v0.4.34
Jeremy Schlatter [Mon, 27 Jul 2015 23:43:53 +0000 (16:43 -0700)]
version bump

11 years agoFix handling for broken .eml messages.
Jeremy Schlatter [Thu, 4 Dec 2014 00:54:06 +0000 (16:54 -0800)]
Fix handling for broken .eml messages.

I didn't test this well enough yesterday. It turns out that the
attachment was getting created, but its ContentType was overwritten to
message/rfc822. This caused problems elsewhere because the the
attachment we created did not have the structure expected for
message/rfc822.

The fix: Don't let Body override our ContentType declaration.

11 years agoUpdated DNSQ version which handles non-existant TLDs. rjones/dns-fix v0.4.33
Russell Jones [Mon, 13 Jul 2015 21:59:24 +0000 (21:59 +0000)]
Updated DNSQ version which handles non-existant TLDs.

11 years agoversion bump v0.4.32
Jeremy Schlatter [Thu, 11 Jun 2015 19:55:18 +0000 (12:55 -0700)]
version bump

11 years agofix exception in serialization of messages with malformed headers
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.

11 years agoversion bump v0.4.31
Jeremy Schlatter [Wed, 10 Jun 2015 00:57:18 +0000 (17:57 -0700)]
version bump

11 years agowork harder to avoid re-serializing headers
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

11 years agoVersion bump to v0.4.30 v0.4.30
Jesse Spears [Tue, 2 Jun 2015 18:42:30 +0000 (11:42 -0700)]
Version bump to v0.4.30

11 years agoMerge pull request #79 from aroberts/fix-equality
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)

11 years agoversion bump v0.4.29
Jeremy Schlatter [Tue, 19 May 2015 19:05:57 +0000 (12:05 -0700)]
version bump

11 years agobreak long line
Jeremy Schlatter [Tue, 19 May 2015 17:52:44 +0000 (10:52 -0700)]
break long line

11 years agodon't re-serialize the whole message when headers have been prepended but nothing...
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

11 years agoMerge pull request #89 from mailgun/jesse/gmail-reject-consecutive-dots
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

11 years agovalidate(): reject consecutive dots in local name
Jesse Spears [Tue, 19 May 2015 01:02:29 +0000 (18:02 -0700)]
validate(): reject consecutive dots in local name

11 years agoversion bump v0.4.28
Jeremy Schlatter [Tue, 10 Mar 2015 22:57:15 +0000 (15:57 -0700)]
version bump

11 years agoMerge pull request #85 from lmcnearney/feature/live
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

11 years agoMerge pull request #86 from mailgun/jeremy/yahoo-brazil
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

11 years agoadd 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

11 years agoAllow hotmail addresses to begin with a number
Lance McNearney [Thu, 19 Feb 2015 15:24:22 +0000 (07:24 -0800)]
Allow hotmail addresses to begin with a number

11 years agoMerge pull request #81 from bulatb/patch-1
Jeremy Schlatter [Tue, 10 Feb 2015 23:47:29 +0000 (15:47 -0800)]
Merge pull request #81 from bulatb/patch-1

Typo fix

11 years agoTypo fix
Bulat Bochkariov [Mon, 2 Feb 2015 05:10:41 +0000 (21:10 -0800)]
Typo fix

11 years agoMerge pull request #76 from mailgun/rjones/content-type-override v0.4.27
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.

11 years agoAdded support for overriding heuristic content type discovery for tricky
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.

11 years agofix bug with != operator against a string
Andrew Roberts [Fri, 23 Jan 2015 17:24:01 +0000 (12:24 -0500)]
fix bug with != operator against a string

11 years agoVersion bump and minor refactor. v0.3.26
Russell Jones [Wed, 14 Jan 2015 01:12:28 +0000 (01:12 +0000)]
Version bump and minor refactor.

11 years agoMerge pull request #67 from inboxapp/master
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.

11 years agoFix parse_list() to handle Address objects with unicode properly also.
Christine Spang [Tue, 13 Jan 2015 21:47:01 +0000 (13:47 -0800)]
Fix parse_list() to handle Address objects with unicode properly also.

11 years agoFailing test case for case where parse_list() received Address object.
Christine Spang [Tue, 13 Jan 2015 21:45:59 +0000 (13:45 -0800)]
Failing test case for case where parse_list() received Address object.

11 years agoMerge pull request #72 from mailgun/cache_postives_only v0.4.25
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.

11 years agoIf unable to connect to a MX server, 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.

11 years agoAdd regression test for non-ascii email address parsing.
Christine Spang [Sat, 10 Jan 2015 19:28:08 +0000 (11:28 -0800)]
Add regression test for non-ascii email address parsing.

11 years agoFix for decoding errors if the list includes a non-ASCII string.
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.

11 years agoMerge pull request #71 from jeffwidman/patch-1 v0.4.24
Jeremy Schlatter [Wed, 3 Dec 2014 01:14:04 +0000 (17:14 -0800)]
Merge pull request #71 from jeffwidman/patch-1

Fix two typos

11 years agobump version
Jeremy Schlatter [Wed, 3 Dec 2014 01:05:27 +0000 (17:05 -0800)]
bump version

11 years agoLabel broken MIME attachments as ContentType: application/octet-stream rather than...
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

11 years agoDon't throw an exception for .eml attachments with broken MIME.
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'.

12 years agoFix two typos
Jeff Widman [Wed, 19 Nov 2014 00:26:53 +0000 (16:26 -0800)]
Fix two typos

12 years agoBump version. v0.4.23
Roman Tkachenko [Wed, 5 Nov 2014 23:13:12 +0000 (15:13 -0800)]
Bump version.

12 years agoMerge pull request #68 from mailgun/roman/cchardet
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...

12 years agoDetect encodings with cchardet which is much faster (with fallback to chardet).
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).

12 years agoMerge pull request #66 from mailgun/jeremy/charset v0.4.22
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

12 years agoversion bump
Jeremy Schlatter [Wed, 29 Oct 2014 01:41:09 +0000 (18:41 -0700)]
version bump

12 years agodon't default to ascii charset for non-text Content-Types
Jeremy Schlatter [Wed, 29 Oct 2014 01:38:48 +0000 (18:38 -0700)]
don't default to ascii charset for non-text Content-Types

12 years agoMerge pull request #65 from mailgun/style
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

12 years agoremove spaces before function calls
Jeremy Schlatter [Wed, 22 Oct 2014 01:45:08 +0000 (18:45 -0700)]
remove spaces before function calls

12 years agofix typos
Jeremy Schlatter [Wed, 22 Oct 2014 01:33:47 +0000 (18:33 -0700)]
fix typos

12 years agofix typo
Jeremy Schlatter [Wed, 22 Oct 2014 01:31:43 +0000 (18:31 -0700)]
fix typo

12 years agofix typo
Jeremy Schlatter [Wed, 22 Oct 2014 00:11:02 +0000 (17:11 -0700)]
fix typo

12 years agoVersion bump, I always forget to version bump... v0.4.21
Russell Jones [Wed, 1 Oct 2014 23:59:53 +0000 (23:59 +0000)]
Version bump, I always forget to version bump...

12 years agoMock network based tests so they are fast, deterministic, and can run
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.

12 years agoAdd option to headers.transform for decoding encoded-words list v0.4.20
Jeremy Schlatter [Mon, 22 Sep 2014 20:09:47 +0000 (13:09 -0700)]
Add option to headers.transform for decoding encoded-words

12 years agoadd .swp to .gitignore
Jeremy Schlatter [Wed, 17 Sep 2014 18:40:03 +0000 (11:40 -0700)]
add .swp to .gitignore

12 years agoBump version v0.4.19
Maxim Vladimirsky [Fri, 1 Aug 2014 07:58:13 +0000 (11:58 +0400)]
Bump version

12 years agoMerge pull request #55 from mailgun/maxim/develop
Maxim Vladimirsky [Fri, 1 Aug 2014 07:52:51 +0000 (11:52 +0400)]
Merge pull request #55 from mailgun/maxim/develop

Fix FallbackHeaders.transform

12 years agoFix FallbackHeaders.transform
Maxim Vladimirsky [Thu, 31 Jul 2014 17:02:24 +0000 (21:02 +0400)]
Fix FallbackHeaders.transform

12 years agoMake sure that only string header values are converted v0.4.18
Maxim Vladimirsky [Thu, 31 Jul 2014 08:02:02 +0000 (12:02 +0400)]
Make sure that only string header values are converted

12 years agoMerge pull request #24 from mailgun/rjones/header-fix v0.4.17
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

12 years agoDo not decode FallbackMimeHeaders rjones/header-fix
Maxim Vladimirsky [Wed, 30 Jul 2014 06:22:04 +0000 (10:22 +0400)]
Do not decode FallbackMimeHeaders

12 years agoStore raw header values to preserve encoding
Russell Jones [Tue, 31 Dec 2013 00:21:31 +0000 (16:21 -0800)]
Store raw header values to preserve encoding

12 years agoMerge pull request #53 from mailgun/maxim/develop
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

12 years agoMake EmailAddress.display_name to be a arbitrary string
Maxim Vladimirsky [Fri, 25 Jul 2014 17:46:50 +0000 (21:46 +0400)]
Make EmailAddress.display_name to be a arbitrary string

12 years agoFix doc strings
Maxim Vladimirsky [Thu, 24 Jul 2014 08:15:37 +0000 (12:15 +0400)]
Fix doc strings

12 years agoMerge pull request #54 from mailgun/maxim/fix
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

12 years agoAllow `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

12 years agoMerge pull request #52 from mailgun/maxim/develop
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

12 years agoMake 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

12 years agoMerge pull request #50 from mailgun/maxim/tokenizer
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

12 years agoFix a typo in the RichPartMixin name
Maxim Vladimirsky [Wed, 16 Jul 2014 06:20:52 +0000 (10:20 +0400)]
Fix a typo in the RichPartMixin name

12 years agoIgnore false Content-Type headers
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.

12 years agoMerge pull request #51 from mailgun/maxim/develop
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

12 years agoMake FallbackHeaders interface match with MimeHeaders
Maxim Vladimirsky [Wed, 16 Jul 2014 06:20:52 +0000 (10:20 +0400)]
Make FallbackHeaders interface match with MimeHeaders

12 years agoMerge pull request #49 from mailgun/maxim/develop
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

12 years agoMake 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.

12 years agoUpdated address length check to 1024 characters because many unsubscribe v0.4.15
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.

12 years agoDocument relaxed canonicalization
Alex Gaynor [Thu, 10 Jul 2014 22:35:32 +0000 (15:35 -0700)]
Document relaxed canonicalization

12 years agoImplemented relaxed canonicalization
Alex Gaynor [Thu, 10 Jul 2014 22:33:10 +0000 (15:33 -0700)]
Implemented relaxed canonicalization

12 years agoMerge remote-tracking branch 'dreid/dkim' into dkim
Alex Gaynor [Thu, 10 Jul 2014 22:07:23 +0000 (15:07 -0700)]
Merge remote-tracking branch 'dreid/dkim' into dkim

12 years agoAdd test fixtures for relaxed, haphazardly generated from dkimpy.
David Reid [Thu, 10 Jul 2014 22:06:41 +0000 (15:06 -0700)]
Add test fixtures for relaxed, haphazardly generated from dkimpy.

12 years agoUnskip test and fix the expected value -- it's a bit nonsense tbh
Alex Gaynor [Thu, 10 Jul 2014 21:58:28 +0000 (14:58 -0700)]
Unskip test and fix the expected value -- it's a bit nonsense tbh

12 years agoflake8 and regexp cleanups
Alex Gaynor [Thu, 10 Jul 2014 21:31:05 +0000 (14:31 -0700)]
flake8 and regexp cleanups

12 years agoAdded unit tests for canonicalization and fixed several bugs therein
Alex Gaynor [Thu, 10 Jul 2014 21:08:42 +0000 (14:08 -0700)]
Added unit tests for canonicalization and fixed several bugs therein

12 years agoAdded install_requires
Alex Gaynor [Wed, 9 Jul 2014 21:26:38 +0000 (14:26 -0700)]
Added install_requires

12 years agoAdded documentation, detailed a stub
Alex Gaynor [Wed, 9 Jul 2014 21:25:13 +0000 (14:25 -0700)]
Added documentation, detailed a stub

12 years agoflake8 + nose
Alex Gaynor [Tue, 8 Jul 2014 23:15:16 +0000 (16:15 -0700)]
flake8 + nose

12 years agoInitial implementation of DKIM signatures
Alex Gaynor [Tue, 8 Jul 2014 23:12:40 +0000 (16:12 -0700)]
Initial implementation of DKIM signatures

12 years agoInitial implementation of Domain Key signatures
Alex Gaynor [Tue, 8 Jul 2014 22:46:17 +0000 (15:46 -0700)]
Initial implementation of Domain Key signatures

12 years agoUpdated MX records for iCloud.
Russell Jones [Tue, 8 Jul 2014 07:04:43 +0000 (00:04 -0700)]
Updated MX records for iCloud.

12 years agoMerge pull request #48 from alex/supports-pypy
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

12 years agoRun tests against PyPy as well
Alex Gaynor [Fri, 11 Jul 2014 19:59:24 +0000 (12:59 -0700)]
Run tests against PyPy as well

12 years agoMerge pull request #42 from mailgun/anton/typo-fix
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

12 years agoMerge pull request #46 from dreid/travis
Russell Jones [Thu, 10 Jul 2014 21:27:11 +0000 (14:27 -0700)]
Merge pull request #46 from dreid/travis

Add a very basic .travis.yml that integrates with tox.

12 years agoAdd a very basic .travis.yml that uses integrates with tox.
David Reid [Thu, 10 Jul 2014 19:57:24 +0000 (12:57 -0700)]
Add a very basic .travis.yml that uses integrates with tox.

12 years agoFix typo in utils.py anton/typo-fix
Anton Efimenko [Sun, 22 Jun 2014 20:16:22 +0000 (13:16 -0700)]
Fix typo in utils.py