Using Mutt to Check POP or IMAP Email
-
If you are like me and manage a lot of email, sometimes it is nice to use a command line email client just to see what is going on. One thing that I really like is that with the Mutt command line client, I do not have to "set up" an account, I can just specify the details in the connection string and voila, it connects. If I was on Thunderbird, for example, I would spend a lot of time creating an account in the application for each mailbox that I want to test, and then wanting to delete it afterwards. With Mutt, the details only exist for as long as I am connected.
Installing Mutt is trivial. On Fedora or similar, dnf install mutt. On Ubuntu, Debian and their ilk just apt install mutt. Doesn't get any easier.
All you then need to know is the format to connect. This is the part that no one tells you. The format is -f (for file, but it isn't a file) and you can use one or two @ signs in the string because the format is...
mutt -f pop://mailbox@host
Where: host can be an IP, hostname, localhost, etc.
Where: mailbox can be a name or a full email address with its own @ sign.Examples:
mutt -f pop://bob@localhost/ mutt -f imap://[email protected]/ mutt -f pop://[email protected]@localhost/ muff -f imap://[email protected]@myemailmta.org/
-
The
alpine
mail client seems popular as well. Do you know if there is a similar way to use directly from the command line? -
Hehehe.... he said muff......
@scottalanmiller said in Using Mutt to Check POP or IMAP Email:
Examples:
mutt -f pop://bob@localhost/mutt -f imap://[email protected]/
mutt -f pop://[email protected]@localhost/
muff -f imap://[email protected]@myemailmta.org/
-
@scottalanmiller No example output?