Try looking at lib/rfc822.py in the 0.9.8 release (or in my home
directory :-). It's not complete but does do essentials like parsing
continuation lines, and gives you a list containing the broken-down
header.
--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>