Download email from imap with tls 1.2


New Member
Oct 14, 2019
Reaction score
Hello everyone,
I would downlad the emails from my server thought imap protocol by command line?

Can you send me some tutorials or example code ?

There are a lot of unknowns here. What mail client are you using?
Mutt, Elm, and "mail", sup and Alpine are probably the most common ones.
imap normally keeps mail on the server. pop3 normally downloads mail to the client.
The commands are different for the kind of mail server, and which client you re using.

At it's simplest,
You would just type "mail", and it shows you a list of emails stored in your client.
Press "1" to view message 1. Press "d" to delete this message. Press "q" to quit.
But this just "displays" the contents of the email. Is that good enough?
I would download all attachment from all mail in my server periodically
With this tool is it possible?