pop3 decode/detect framework