summaryrefslogtreecommitdiffstats
path: root/Lib/mhlib.py
Commit message (Collapse)AuthorAgeFilesLines
* Implement and apply PEP 322, reverse iterationRaymond Hettinger2003-11-061-2/+1
|
* Get rid of many apply() calls.Guido van Rossum2003-02-271-1/+1
|
* Replace .keys() with .iteritems(). Second review and test by Alex.Raymond Hettinger2002-06-041-2/+2
|
* Make test_mhlib run again.Michael W. Hudson2002-06-021-1/+1
| | | | | | | | | There's some wierdness here, but the test ran before and not after, so I'm just hacking the change out. Someone more motivated than me can work out what's really happening. Raymond: *PLEASE* run the test suite before checking things like this in!
* Replaced obsolete stat module constants with equivalent attributesRaymond Hettinger2002-06-011-5/+2
|
* Replace boolean test with is None.Raymond Hettinger2002-06-011-5/+5
|
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-2/+2
|
* Convert a pile of obvious "yes/no" functions to return bool.Tim Peters2002-04-041-2/+2
|
* Folder.getlast(): avoid PyChecker warning.Guido van Rossum2001-10-171-1/+1
|
* Clean up a bare except: clause.unknown2001-07-041-1/+1
|
* String method cleanup.Eric S. Raymond2001-02-101-4/+2
|
* Test with an actual mbox caught a trivial error.Eric S. Raymond2001-02-091-1/+1
|
* String method conversion.Eric S. Raymond2001-02-091-20/+20
|
* a few more modules get __all__Skip Montanaro2001-01-241-0/+1
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-1/+1
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* Convert to use class-based exceptions.Fred Drake2000-06-291-2/+3
| | | | Correct exception information in one docstring.
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-150/+147
| | | | | | | | | | | | | | | | | | who writes: Here is batch 2, as a big collection of CVS context diffs. Along with moving comments into docstrings, i've added a couple of missing docstrings and attempted to make sure more module docstrings begin with a one-line summary. I did not add docstrings to the methods in profile.py for fear of upsetting any careful optimizations there, though i did move class documentation into class docstrings. The convention i'm using is to leave credits/version/copyright type of stuff in # comments, and move the rest of the descriptive stuff about module usage into module docstrings. Hope this is okay.
* Patch by Lars Wirzenius:Guido van Rossum1999-02-241-3/+7
| | | | | | | | | | | | | | | | o the initial comment is wrong: creating messages is already implemented o Message.getbodytext: if the mail or it's part contains an empty content-transfer-encoding header, the code used to break; the change below treats an empty encoding value the same as the other types that do not need decoding o SubMessage.getbodytext was missing the decode argument; the change below adds it; I also made it unconditionally return the raw text if decoding was not desired, because my own routines needed that (and it was easier than rewriting my own routines ;-)
* "if match(x) >= 0:" smells of regex matching; should use "if match(x):"Guido van Rossum1998-06-231-1/+1
|
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-608/+608
|
* Use string.replace instead of regsub.[g]sub.Guido van Rossum1997-12-241-4/+4
|
* Convert all remaining *simple* cases of regex usage to re usage.Guido van Rossum1997-10-221-15/+9
|
* Use sys.exc_info() where needed.Guido van Rossum1997-09-291-1/+1
|
* Added createmessage() -- Lars Wirzenius.Guido van Rossum1997-07-251-0/+26
|
* Reindented with 4 spaces.Guido van Rossum1997-04-161-816/+813
|
* Rewrite parsesequence() to emulate MH without invoking pick.Guido van Rossum1997-04-161-38/+132
| | | | Test it extensively by using pick.
* Optimized the hell out of listmessages().Guido van Rossum1997-04-021-10/+8
| | | | | Changed numericprog regexpr to make it faster to check. Removed now unnecessary checks for os.curdir, os.pardir.
* When removing a messge from all sequences, don't remove from 'cur',Guido van Rossum1996-11-121-0/+3
| | | | which needs to stay unless explicitly set.
* Added option to refilemessages() to keep sequencesGuido van Rossum1996-07-211-4/+27
|
* added setcontext and parsesequence; several small fixesGuido van Rossum1996-05-281-6/+56
|
* fix bogus test for regex matchGuido van Rossum1995-01-261-1/+1
|
* * Lib/mhlib.py: added movemessage(), copymessage(), added copyGuido van Rossum1995-01-021-8/+81
| | | | fallback for refilemessages(), and updated the docs
* mhlib.py: delay opening of sequences file so we don't overwrite it whenGuido van Rossum1994-09-091-2/+11
| | | | | | 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/mhlib.py (removefromallsequences): call putsequences withGuido van Rossum1994-07-141-1/+1
| | | | | | | | | | | | | proper argument * Lib/{bdb,cmd,pdb}.py: Mods by Rickard Westman: No longer barfs on lambda:s (outputs "<lambda>" as the function name); "a(rgs)" in pdb now works; help messages added to pdb (lifted from pdb.doc). Also, "h pdb" calls pdb.help(). cmd.do_help() displays topics on a nicer way (I think). Also, topics for which there is a help_ method, but no do_method (like "pdb" above) are displayed in a special way. My own mod: fix break on function to also support methods.
* mhlib.py: new interface to MH folders and messagesGuido van Rossum1994-06-231-0/+735
multifile.py: added readlines() and read() methods mimetools.py: mimetools.py: added functions to encode/decode standard MIME Content-transfer-encoding types (as well as uuencode) rfc822.py: Accept lines ending in CR LF as well