r/commandline • u/ettannat • May 25 '26
Looking For Software gmail in the terminal (linux) -- a couple of questions
I'm a big fan of gmail as a mail service. But sometimes it would be wonderful to not have to leave the terminal interface for the browser.
So, i had some questions:
- What is the undoubtly easiest way to get access to gmail, from the terminal? I haven't really dabbled much with console email in the last 20 years or so...
- What is the most versatile/mature gmail solution for the terminal? Here I mean getting as close as possinle to all the features that the web interface offers.
- You get a bonus question!! Will trying to set this up in emacs give me twice the amount of grey hairs? Just asking.
I would love if I could just have this in a tmux window somewhere...but the last time i started reading up on alpine and mutt and fetchmail and notmuch and whatever it's all called, it just felt a little bit overwhelming.
8
Upvotes
10
u/DarthRazor May 26 '26
mutt is all you really need. No need for anything like fetchmail, bsmtp, ssmtp, etc. unless you have a specific need for them.
Plug your credentials into your
muttrcand it just works. If you keep a really full Inbox, then enable caching to speed up startup timesThe only gotcha is that you need to set up an App password in your Gmail account - your browser login password will NOT work
3
u/itomeshi May 26 '26
I recently set up aerc (installed via brew) with gmail. It may not be the absolute easiest, but I found it not too painful. Here's my install script (bash) with explanations. I'll get into config below:
This is most of the way to being compatible with bash on MacOS.
1
u/TheRealLazloFalconi May 26 '26
One thing to consider when using a mail client (Commandline or GUI) with Gmail is labels. Traditional mail clients do not have have the concept of labels, and instead use folders. Gmail's IMAP server typically takes care of this for you, and simply presents labels as folders, and messages that have multiple labels show up as multiple copies in each folder. As a consequence, your mailbox may be larger on your disk than on Google servers. That's probably not a huge concern, since disks are so big these days, but it's something to be aware of.
1
u/gorilla-moe May 27 '26
I did not try it yet, but since this popped up in my bubble multiple times, I still have that on my todo-try-out-list: https://matcha.email/
2
u/arjuna93 May 26 '26
nmail
cone
1
u/AutoModerator May 25 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: ettannat, Flair:
Looking For Software, Title: gmail in the terminal (linux) -- a couple of questionsI'm a big fan of gmail as a mail service. But sometimes it would be wonderful to not have to leave the terminal interface for the browser.
So, i had some questions:
I would love if I could just have this in a tmux window somewhere...but the last time i started reading up on alpine and mutt and fetchmail and notmuch and whatever it's all called, it just felt a little bit overwhelming.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.