4

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.

  • 6
    You could use mutt, which could mark the messages as read on the mail server, and Evolution would view them as read once it syncs. – Kenneth B. Jensen Feb 25 '17 at 19:40
5

mutt is the right choice, try

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

Press ? to show keyboard commands.

  • My provider is not Gmail. Also this results in my email pass being in the shell history in plaintext. – Bagalaw Mar 1 '17 at 0:21
  • 1
    Sure, and your name is not USER and your password is not PASS. The generic syntax without password is mutt -f imaps://USER@imap.notgmail.com/INBOX. – ingopingo Mar 11 '17 at 17:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.