Test with an actual mbox caught a trivial error.

This commit is contained in:
Eric S. Raymond 2001-02-09 10:28:34 +00:00
parent 304b6a3225
commit c9838f9fcb
1 changed files with 1 additions and 1 deletions

View File

@ -690,7 +690,7 @@ def getheadertext(self, pred = None):
if i > 0: if i > 0:
hit = pred(line[:i].lower()) hit = pred(line[:i].lower())
if hit: headers.append(line) if hit: headers.append(line)
return ''.joinfields(headers) return ''.join(headers)
def getbodytext(self, decode = 1): def getbodytext(self, decode = 1):
"""Return the message's body text as string. This undoes a """Return the message's body text as string. This undoes a