ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Using Mutt to Check POP or IMAP Email

    IT Discussion
    mutt email imap dovecot pop pop3 imap4 linux unix bsd freebsd command line
    3
    4
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      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/
      
      1 J 3 Replies Last reply Reply Quote 3
      • 1
        1337 @scottalanmiller
        last edited by

        @scottalanmiller

        The alpine mail client seems popular as well. Do you know if there is a similar way to use directly from the command line?

        1 Reply Last reply Reply Quote 0
        • J
          JasGot @scottalanmiller
          last edited by

          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/

          1 Reply Last reply Reply Quote 0
          • J
            JasGot @scottalanmiller
            last edited by

            @scottalanmiller No example output? 🙂

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post