added a function toget key vals of mail headers