Changeset 88
- Timestamp:
- 03/10/08 14:02:00 (8 months ago)
- Files:
-
- 1 modified
-
trunk/turbomail/util.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/turbomail/util.py
r84 r88 1 1 # encoding: utf-8 2 2 3 """ MIME-encoded electronic mail messageclasses."""3 """TurboMail utility functions and support classes.""" 4 4 5 5 __version__ = "$Revision$" … … 15 15 16 16 class Address(object): 17 """Validated electonic mail address class. 18 19 This class knows how to validate and format e-mail addresses. It 20 uses Python's built-in `parseaddr` and `formataddr` helper 21 functions and helps guarentee a uniform base for all e-mail 22 address operations. 23 24 The AddressList unit tests provide comprehensive testing of this 25 class as well.""" 26 17 27 validator = re.compile(r'^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(\+([0-9a-zA-Z])+)?@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$') 18 28
