rfc2822: extract header handling from mailinfo
WIP