I would like to download all the e-mails in my old e-mail server. It uses POP3 and I'm interested in e-mails in "Inbox" and "Sent" folders. Once I have downloaded all the messages, I would like to make a script which lists all the e-mails between my e-mail address and one certain e-mail address in chronological fashion into single text file.
However, at first, I think I need to download all the messages to a single file with headers including dates and then create a sorting script. How to approach this?
I have used mailx in scripts for sending mails, but is it possible to use mailx to download all the mails from POP3 server into a single file?