Improved parsing of POP3 header