A backport of the newest Python 2.x email module to >= Python 2.3
Project description
The email_backport package is a wrap-up of the email > 4.x module
found in Python 2.5 and above.
This is to create a simple way of creating email-related code that
works with existing Python code and interpreters (>= Python 2.3) as
there has been a lot of changes such as new naming standards, see
here:
http://docs.python.org/library/email
To use in your code, try something like:
EMAIL_4 = False
global EMAIL_4
try:
from email import message
if hasattr(email, 'backport'):
email.backport()
EMAIL_4 = True
except ImportError:
import email_backport as email
email.backport()
EMAIL_4 = True
If EMAIL_4 is true, we're good to go, if not, one can disable mail
features of the application.
The versioning of email_backport follows Python's email module
internal version.
You can find the SVN version of this package here:
https://svn.nidelven-it.no/svn/shared-pypi-modules/
Login is svnaccess/svnaccess (read-only access). If you want to
contribute, drop us a line!
4.0.3b2 (2012-04-24)
- Cleaned up code, creating simpler import of email_backport
- Updated documentation
- Modified message.py to use split instead of partition.
4.0.3b:
- Initial setup
found in Python 2.5 and above.
This is to create a simple way of creating email-related code that
works with existing Python code and interpreters (>= Python 2.3) as
there has been a lot of changes such as new naming standards, see
here:
http://docs.python.org/library/email
To use in your code, try something like:
EMAIL_4 = False
global EMAIL_4
try:
from email import message
if hasattr(email, 'backport'):
email.backport()
EMAIL_4 = True
except ImportError:
import email_backport as email
email.backport()
EMAIL_4 = True
If EMAIL_4 is true, we're good to go, if not, one can disable mail
features of the application.
The versioning of email_backport follows Python's email module
internal version.
You can find the SVN version of this package here:
https://svn.nidelven-it.no/svn/shared-pypi-modules/
Login is svnaccess/svnaccess (read-only access). If you want to
contribute, drop us a line!
4.0.3b2 (2012-04-24)
- Cleaned up code, creating simpler import of email_backport
- Updated documentation
- Modified message.py to use split instead of partition.
4.0.3b:
- Initial setup
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
email_backport-4.0.3b2.tar.gz
(146.9 kB
view details)
File details
Details for the file email_backport-4.0.3b2.tar.gz
.
File metadata
- Download URL: email_backport-4.0.3b2.tar.gz
- Upload date:
- Size: 146.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5f4f70c78f9c7ac8fa878f9e4af1f93e650d9299b3c5b8d1f9d2737279e869c |
|
MD5 | dba8c71b6b9615fe26968be17fa63c63 |
|
BLAKE2b-256 | 142ecf11b282fc3f98c9a358c670286fc33926a7ac0636ae678d68821c36bed2 |