-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #227 from gabekneisley/master
Update README.rst to correct usage examples
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -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): | ||
|
@@ -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 | ||
|