Skip to content

Commit

Permalink
Merge pull request #227 from gabekneisley/master
Browse files Browse the repository at this point in the history
Update README.rst to correct usage examples
  • Loading branch information
thrawn01 authored Oct 24, 2019
2 parents 4d6a207 + ef9e3ae commit e689d48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ To parse an address list:
>>> from flanker.addresslib import address
>>>
>>> address.parse_list('[email protected], [email protected], @example.com')
>>> address.parse_list(['[email protected], [email protected], @example.com'])
[foo@example.com, bar@example.com]
To parse an address list as well as return a tuple containing the parsed
Expand All @@ -99,7 +99,7 @@ addresses and the unparsable portions
>>> from flanker.addresslib import address
>>>
>>> address.parse_list('[email protected], [email protected], @example.com', as_tuple=True)
>>> address.parse_list(['[email protected], [email protected], @example.com'], as_tuple=True)
[foo@example.com, bar@example.com], ['@example.com']
To parse an address list in strict mode:
Expand All @@ -108,7 +108,7 @@ To parse an address list in strict mode:
>>> from flanker.addresslib import address
>>>
>>> address.parse_list('[email protected], [email protected], @example.com', strict=True)
>>> address.parse_list(['[email protected], [email protected], @example.com'], strict=True)
[foo@example.com, bar@example.com]
To validate an email address (parse as well as DNS, MX existence, and ESP grammar checks):
Expand All @@ -126,7 +126,7 @@ To validate an address list:
>>> from flanker.addresslib import address
>>>
>>> address.validate_list('[email protected], [email protected], @mailgun.com', as_tuple=True)
>>> address.validate_list(['[email protected], [email protected], @mailgun.com'], as_tuple=True)
([foo@mailgun.com, bar@mailgun.com], ['@mailgun.com'])
MIME Parsing
Expand Down

0 comments on commit e689d48

Please sign in to comment.