How to check mail from the command line

command lineemail

I use Evolution to send and receive mail via IMAP. I want to keep using Evolution most of the time, but I want the option to check and read mail from the command line as well. Reading a new email from the command line should cause Evolution to also display it as read (so I don't have to read them twice), but simply fetching from CLI without marking as read should not make Evolution fail to fetch it.

How can I do this? I know there is a mail command, but that seems to display mail from my OS to my Linux user, not the mail sent from other people to my email box.

Best Answer

mutt is the right choice, try

mutt -f "imaps://USER:PASS@imap.gmail.com/INBOX"

Press ? to show keyboard commands.

Related Question