rewrite mutt_read_rfc822_header to have a more consistent API.