Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Are there some command line tools (or libraries) out there to access a gmail account, e.g. to read unread messages, download messages, etc.?

share|improve this question
up vote 2 down vote accepted

If you like Vim there is a gem called Vmail. The cool thing about Vmail is that its keybindings are similar to Gmail's keyboard shortcuts. So for instance, to archive a message in Gmail you type e. In Vmail you type ,e.

share|improve this answer
Yay, vim! Discovered it already a few weeks back; thanks for completing the list here! – miku Feb 17 '11 at 10:22

Simply use the IMAP- or POP3-protocol and a client or library to access the emails.

share|improve this answer

The Google Command Line Tool might provide such support in the future. Right now it is limited to Blogger, Calendar, Contacts, Docs, Picasa and Youtube.


share|improve this answer

You can do this using Postfix and Fetchmail. See here: http://souptonuts.sourceforge.net/postfix_tutorial.html

share|improve this answer

You've got two questions here.

  1. Are there libraries? Yup - but you'll want to mention a programming language of choice. All of them have some library associated for interacting with the google suite.

  2. Are there command line tools? Yup. You can use good old Mutt or Pine. I've also heard good things about Sup and it seems to be oriented towards gmail style usage.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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