summaryrefslogtreecommitdiffstats
path: root/Lib/email/Utils.py
Commit message (Collapse)AuthorAgeFilesLines
* decode_rfc2231(): We need to urllib.unquote() the value even if theBarry Warsaw2003-08-191-1/+1
| | | | | | charset and language fields are not present, e.g. as in: title*0="This%20is%20encoded"
* specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points outBarry Warsaw2003-03-101-2/+2
| | | | that backslashes must be escaped in character sets.
* _bdecode(): Remove redundant check.Barry Warsaw2003-03-101-2/+0
|
* decode_rfc2231(): RFC 2231 allows leaving out both the charset andBarry Warsaw2003-03-071-5/+7
| | | | language without including any single quotes.
* Jason Mastaler's patch to break the dependence on rfc822.py for theBarry Warsaw2002-11-051-5/+5
| | | | address parsing routines. Closes SF patch #613434.
* Docstring consistency with the updated .tex files.Barry Warsaw2002-10-011-6/+15
|
* Use True/False everywhere, and other code cleanups.Barry Warsaw2002-09-281-7/+11
|
* rfc822.unquote() doesn't properly de-backslash-ify in Python prior toBarry Warsaw2002-09-111-1/+12
| | | | | 2.3. This patch (adapted from Quinn Dunkan's SF patch #573204) fixes the problem and should get ported to rfc822.py.
* Oleg Broytmann's support for RFC 2231 encoded parameters, SF patch #549133Barry Warsaw2002-06-291-0/+57
| | | | | | | | | Specifically, decode_rfc2231(), encode_rfc2231(): Functions to encode and decode RFC 2231 style parameters. decode_params(): Function to decode a list of parameters.
* Use absolute import paths for intrapackage imports.Barry Warsaw2002-06-021-2/+2
|
* Whitespace normalization.Tim Peters2002-05-231-1/+1
|
* getaddresses(): Like the change in rfc822.py, this one needs to accessBarry Warsaw2002-05-221-1/+1
| | | | | | the AddressList.addresslist attribute directly. Also, add a test case for the email.Utils.getaddresses() interface.
* Complete a merge of the mimelib project and the Python cvs codebasesBarry Warsaw2002-05-191-1/+18
| | | | | | | | | | | | | for the email package. The former is now just a shell project that has some extra files for packaging for independent use (e.g. setup.py and README). Added a compatibility layer so that the same API can be used in Python 2.1 and 2.2/2.3 with the major differences shuffled off into helper modules (_compat21.py and _compat22.py). Also bumped the package version number to 2.0.3 for some fixes to be checked in momentarily.
* parseaddr(): Don't use rfc822.parseaddr() because this now implies aBarry Warsaw2002-04-151-4/+3
| | | | | | | | double call to AddressList.getaddrlist(), and /that/ always returns an empty list for the second and subsequent calls. Instead, instantiate an AddressList directly, and get the parsed addresses out of the addresslist attribute.
* AddrlistClass -> AddressListBarry Warsaw2002-04-121-2/+2
|
* Sync'ing with standalone email package 2.0.1. This adds support forBarry Warsaw2002-04-101-26/+117
| | | | | | | | | non-us-ascii character sets in headers and bodies. Some API changes (with DeprecationWarnings for the old APIs). Better RFC-compliant implementations of base64 and quoted-printable. Updated test cases. Documentation updates to follow (after I finish writing them ;).
* decode(), encode(): Accepting the minor optimizations from SF patchBarry Warsaw2001-12-031-6/+7
| | | | | #486375, but not the rest of it, since that changes the documented semantics of encode().
* formatdate(): Jason Mastaler correctly points out that divmod with aBarry Warsaw2001-11-191-2/+8
| | | | | | negative modulus won't return the right values. So always do positive modulus on an absolute value and twiddle the sign as appropriate after the fact.
* formatdate(): The calculation of the minutes part of the zone wasBarry Warsaw2001-11-191-1/+2
| | | | | | | | incorrect for "uneven" timezones. This algorithm should work for even timezones (e.g. America/New_York) and uneven timezones (e.g. Australia/Adelaide and America/St_Johns). Closes SF bug #483231.
* Forgot to import time.Barry Warsaw2001-11-091-0/+1
|
* formatdate(): A better docstring.Barry Warsaw2001-11-091-4/+7
|
* formatdate(): An implementation to replace the one borrowed fromBarry Warsaw2001-11-091-1/+37
| | | | | | | | | | rfc822.py. The old rfc822.formatdate() produced date strings using obsolete syntax. The new version produces the preferred RFC 2822 dates. Also, an optional argument `localtime' is added, which if true, produces a date relative to the local timezone, with daylight savings time properly taken into account.
* Give me back my page breaks.Barry Warsaw2001-10-041-4/+4
|
* Whitespace normalization.Tim Peters2001-10-041-4/+4
|
* The email package version 1.0, prototyped as mimelibBarry Warsaw2001-09-231-0/+104
<http://sf.net/projects/mimelib>. There /are/ API differences between mimelib and email, but most of the implementations are shared (except where cool Py2.2 stuff like generators are used).