Mail and HTTP Header Removal

Mail messages and web page downloads are constructed in a similar way. The original RFC 822 format for document structures with headers and bodies seems to appear in a variety of places. It has been superceded by RFC 2822. Having some tools to extract or remove headers is useful. The headers in some instances are folded to fit a constrained column width. They need to be unfolded before you can do anything with them. Depending on the mail client you use, extracting raw mail messages might have folded or unfolded headers.