2

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

2

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.

2
  • Yay, vim! Discovered it already a few weeks back; thanks for completing the list here!
    – miku
    Feb 17 '11 at 10:22
  • I was interested until I read, "Developed using Ruby" May 14 at 19:43
6

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

4

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.

http://google-opensource.blogspot.com/2010/06/introducing-google-command-line-tool.html
http://code.google.com/p/googlecl/

1

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

1

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.

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