PyWebMail is a Python library and POP3 gateway that enable working with WebMail servers like with POP3 or IMAP mail server. Currently Mail.Com, Yahoo! Mail, Gmail, Netscape.Net, HotMail and some minor servers support is finished.
mailgate is a set of Python scripts we used at my former company to transfer email a) from a POP3 account to our internal mail server, b) from a POP3 account to a mailbox file and c) from a mailbox file to a SMTP server.