flanker icon indicating copy to clipboard operation
flanker copied to clipboard

Python email address and Mime parsing library

Results 77 flanker issues
Sort by recently updated
recently updated
newest added

Flanker's `EmailAddress` object implements an `__eq__` method to support comparison with strings, which is super convenient, but the missing `__ne__` (and friends) creates some crazy behavior: ``` python >>> email_address...

Hi there, I had an issue on django-flanker that I've traced to flanker itself. https://github.com/dmpayton/django-flanker/issues/2 If `connect_to_mail_exchanger` throws an exception or fails to connect for whatever, it returns None and...

I am getting errors for: if msg.content_type.is_multipart(): for part in msg.parts: print 'Content-Type: {} Body: {}'.format(part, part.body) This is error: UnicodeEncodeError: 'ascii' codec can't encode character u'\u017e' in position 159:...

When [`mail_exchanger_lookup()`](https://github.com/mailgun/flanker/blob/7676b1918ef245a5d05c12d5b574025c4ec31c73/flanker/addresslib/validate.py#L115) fails to connect to the mail exchanger for a specific domain, it sets the corresponding cache entry to `False` ([line 149](https://github.com/mailgun/flanker/blob/7676b1918ef245a5d05c12d5b574025c4ec31c73/flanker/addresslib/validate.py#L149)). However, [`lookup_exchanger_in_cache()`](https://github.com/mailgun/flanker/blob/7676b1918ef245a5d05c12d5b574025c4ec31c73/flanker/addresslib/validate.py#L157) looks for the **string** `'False'`...

Suppose CompanyA buys CompanyB and maintains their email service but changes the MX servers of CompanyB to point to the MX servers of CompanyA. This throws our grammar check for...

See the following issue on the validator-demo repo: https://github.com/mailgun/validator-demo/issues/5 The basic issue is that MS Exchange allows apostrophes, so the validator should as well even though RFC grammar does not.

According to the HTTP [RFC 2388](http://datatracker.ietf.org/doc/rfc2388/): ``` Field names originally in non-ASCII character sets may be encoded within the value of the "name" parameter using the standard method described in...

For an example message: https://gist.github.com/pquerna/b6025e307e82262fa04c/raw/c31c0e18568ccc0a9ad7df27989839be5a49b0f5/t.eml It has non-ascii or utf8 characters in its Subject line. This only causes an error on accessing the `.subject` property. `to_unicode` in `./flanker/flanker/mime/message/headers/parsing.py` does: ```...

There is a bug in how flanker parses messages with the content type of `message/rfc822-headers`. This PR fixes this by treating the `message/rfc822-headers` type as a header container, just like...

The example of `address.parse('John Smith