MailGrab is a Win32 command-line POP3 e-mail reader. It is a console utility that will retrieve Internet e-mail from POP3 servers.
MailGrab can be invoked via a command-line, from a batch file, or from any programming language capable of running external processes.
MailGrab will automatically decode mail attachments unless you suppress decoding via the -noattach option.