Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Mike Meyer reports a bug in his patch (several months ago) that | Guido van Rossum | 1999-04-29 | 1 | -0/+1 | |
| | | | | accepts long month names. One essential line was missing. Fixed now. | |||||
* | Message.getheader(): Fixed grammatical error in docstring. | Fred Drake | 1999-04-28 | 1 | -1/+26 | |
| | | | | | Message.getheaders(): Method to get list of all values for each instance of a named header. See docstring for more. | |||||
* | Utility function that yields a properly formatted time string. | Guido van Rossum | 1999-04-19 | 1 | -0/+10 | |
| | | | | | (Idea by Jeff Bauer, code by Jeremy, renamed and "Date:" constant stripped from return value by GvR.) | |||||
* | Message.getaddrlist(): This now handles multiple occurances of the | Barry Warsaw | 1999-01-14 | 1 | -12/+21 | |
| | | | | | | | | | | | | | | | | | | named header, so that if a message has, e.g. multiple CC: lines, all will get returned by the call to getaddrlist(). It also correctly handles addresses which show up in continuation lines. AdderlistClass.__init__(): Added \n to self.CR which fixes a bug that sometimes, an address would contain a bogus trailing newline. Message.getaddress(): In final else clause, added a test for the character we're at being in self.specials. Without this, such characters never get consumed and we infloop. Case in point (as posted to c.l.py): To: <[smtp:dd47@mail.xxx.edu]_at_hmhq@hdq-mdm1-imgout.companay.com> ----------------------------^ otherwise we'd infloop here | |||||
* | Patch by Mike Meyer: | Guido van Rossum | 1998-12-23 | 1 | -5/+19 | |
| | | | | | | | | Extended the rfc822 parsedate routines to handle the cases they failed on in an archive of ~37,000 messages. I believe the changes are compatible, in that all previously correct parsing are still correct. [I still see problems with some messages, but no showstoppers.] | |||||
* | Avoid crash in parsedate_tz() on certain invalid dates -- when the | Guido van Rossum | 1998-12-23 | 1 | -1/+3 | |
| | | | | | | field assumed to be the time is in fact the year, the resulting list doesn't have enough items, and this isn't checked for. Return None instead. | |||||
* | Don't use calculations on values gotten from tell(). Also use a | Guido van Rossum | 1998-07-21 | 1 | -4/+11 | |
| | | | | slightly different way to test for the existence of unread. | |||||
* | Bugfix to ESR's code reported by himself: should use hasattr() to test | Guido van Rossum | 1998-06-22 | 1 | -1/+1 | |
| | | | | for presence unread, not getattr()! | |||||
* | Add __getitem__ to AddressList object, to make it a sequence. | Guido van Rossum | 1998-06-16 | 1 | -0/+4 | |
| | ||||||
* | Some extra comments and docstrings, and a new class (AddressList), all by ESR. | Guido van Rossum | 1998-06-16 | 1 | -1/+48 | |
| | ||||||
* | Support new overridable method, isheader() (ESR). | Guido van Rossum | 1998-06-11 | 1 | -24/+48 | |
| | | | | Also implement __setitem__(), more-or-less correctly (GvR). | |||||
* | Some changes suggested/provided by Eric Raymond: | Guido van Rossum | 1998-06-10 | 1 | -7/+52 | |
| | | | | | | | | | | | | | - explain seekable - when seekable==1, test fp.tell() and set it to 0 if that fails - support overridable method iscomment(line) to weed out comments - check for unread() method on file object before trying to seek And one of my own: - Add a get() method which behaves like a dictionary's get(); this is actually implemented by giving getheader() an optional second argument to specify the default, and aliasing get to getheader. | |||||
* | Neatify the _timezones table and remove a misleading comment about | Guido van Rossum | 1998-05-18 | 1 | -12/+5 | |
| | | | | inaccuracies in mktime_tz(). | |||||
* | Added a __delitem__ to the Message class. | Guido van Rossum | 1998-04-02 | 1 | -0/+22 | |
| | | | | (Still no __setitem__, until I get a request to add it!) | |||||
* | Mass check-in after untabifying all files that need it. | Guido van Rossum | 1998-03-26 | 1 | -17/+17 | |
| | ||||||
* | Initialize adlist variable in getrouteaddr(), so an illegal address | Guido van Rossum | 1998-03-03 | 1 | -0/+1 | |
| | | | | doesn't cause a traceback. | |||||
* | Feature added by Bill van Melle: when no timezone is present, assume | Guido van Rossum | 1998-02-19 | 1 | -7/+14 | |
| | | | | local time -- that's better than failure. | |||||
* | Fix sign reversal in mktime_tz discovered by Bill van Melle. | Guido van Rossum | 1998-02-18 | 1 | -1/+1 | |
| | ||||||
* | Remove unneeded "import re". | Guido van Rossum | 1997-12-11 | 1 | -1/+0 | |
| | ||||||
* | Doc strings and reformatting with 4 spaces bty Mitch Chapman. | Guido van Rossum | 1997-12-10 | 1 | -609/+661 | |
| | | | | Untabified and minor tweaks by me. | |||||
* | New address parser by Ben Escoto replaces | Guido van Rossum | 1997-11-22 | 1 | -125/+247 | |
| | | | | Sjoerd Mullender's parseaddr() | |||||
* | Convert all remaining *simple* cases of regex usage to re usage. | Guido van Rossum | 1997-10-22 | 1 | -5/+4 | |
| | ||||||
* | Entirely rewritten parseaddr() function by Sjoerd Mullender. | Guido van Rossum | 1997-09-15 | 1 | -53/+92 | |
| | | | | (Includes a patch he sent me a few days later.) | |||||
* | Tweaks by Lars Wirzenius to parse some more forms of illegal dates: | Guido van Rossum | 1997-07-25 | 1 | -2/+5 | |
| | | | | | | | | the comma after the day name is optional if it is a recognized day name; and the date and month may be swapped. Thus, the following two test dates will now be parsed correctly: Thu, Feb 13 12:16:57 1992 Thu Feb 13 12:16:57 1992 | |||||
* | Added support for RFC 850 style dates, as used by some HTTP servers | Guido van Rossum | 1996-12-27 | 1 | -0/+4 | |
| | | | | | | | | (such as Netscape-Commerce and CERN). An example of a RFC 850 date: 'Wednesday, 18-Dec-96 21:00:00 GMT' From: Chris Lawrence <quango@themall.net> | |||||
* | Add mktime_tz() which turns a date_tz 10-tuple into a standard Unix timestamp. | Guido van Rossum | 1996-12-12 | 1 | -0/+11 | |
| | ||||||
* | Added support for timezone in date field. getdate_tz() and | Guido van Rossum | 1996-11-20 | 1 | -6/+57 | |
| | | | | | parsedate_tz() return a 10-tuple, the last field is the tz offset in seconds (e.g. -18000 or -5 hours for EST). | |||||
* | New, improved parseaddr() by Sjoerd. | Guido van Rossum | 1996-07-30 | 1 | -30/+83 | |
| | ||||||
* | optimization of getheader() using a dictionary | Guido van Rossum | 1996-05-28 | 1 | -45/+33 | |
| | ||||||
* | added seekable option; save unix from lines; speed up islast() | Guido van Rossum | 1995-06-22 | 1 | -12/+24 | |
| | ||||||
* | Removed >From stuff | Jack Jansen | 1995-06-16 | 1 | -2/+1 | |
| | ||||||
* | Skip old-style 'From name time' lines at beginning of message. | Jack Jansen | 1995-06-13 | 1 | -0/+6 | |
| | ||||||
* | mhlib.py: delay opening of sequences file so we don't overwrite it when | Guido van Rossum | 1994-09-09 | 1 | -1/+8 | |
| | | | | | | putsequences is called with a bad argument rfc822.py: better handling of dates with no or bad timezones uu.py: contributed by Lance -- uu{en,de}code | |||||
* | * Lib/rfc822.py: fix two bugs: error in readheaders interpreting | Guido van Rossum | 1994-08-12 | 1 | -5/+5 | |
| | | | | | regex.match() result, and wrong logic in getfirstmatchingheader() when the same header occurs twice consecutively | |||||
* | Merge alpha100 branch back to main trunk | Guido van Rossum | 1994-08-01 | 1 | -16/+200 | |
| | ||||||
* | * Mass change: get rid of all init() methods, in favor of __init__() | Guido van Rossum | 1993-12-17 | 1 | -5/+3 | |
| | | | | | | | constructors. There is no backward compatibility. Not everything has been tested. * aiff.{py,doc}: deleted in favor of aifc.py (which contains its docs as comments) | |||||
* | New modules mimetools and rfc822. | Guido van Rossum | 1992-07-13 | 1 | -0/+211 | |
Minor, minor changes to commands.py and sndhdr.py. |