Imap Header function implemented. Regex not efficient