Add old sample and update test code
Improved code for getting the value of headers in rfc822 part
Improved code for getting the value of headers in rfc822 part
Tiny code refactoring
Tiny code refactoring