adding support for rfc822 attached messages