Client daemon to move mail from POP and IMAP to your local computer
Fetchmail is a mail retrieval daemon that can download messages from POP3, IMAP, ODMR and ETRN-based stores, with SSL/TLS security including certificate verification, and pass downloaded mail to a local SMTP or LMTP server, or a message delivery agent such as maildrop.
Sick of handling ifs and gotos in DOS batch files? Use this code generator to code in a higher level language, the sausage machine turns out the batch file. Mercurial repo at https://bitbucket.org/nickj/batchgen