Test with an actual mbox caught a trivial error.
diff --git a/Lib/mhlib.py b/Lib/mhlib.py
index 7dbe875..aab560b 100644
--- a/Lib/mhlib.py
+++ b/Lib/mhlib.py
@@ -690,7 +690,7 @@
                 if i > 0:
                     hit = pred(line[:i].lower())
             if hit: headers.append(line)
-        return ''.joinfields(headers)
+        return ''.join(headers)
 
     def getbodytext(self, decode = 1):
         """Return the message's body text as string.  This undoes a