Patches for check pop3 server [sf#997991] [#580]