What programs are available to archive a mailbox (to mbox or maildir format) that I can only access via POP3? I'd like to be able to browse the mailbox locally afterwards, probably using mutt or the like.

I'm on Debian stable, no problem to compile from source if needed, commandline preferred.