Check Gmail Unread messages in terminal

This post was written by admin on October 12, 2009
Posted Under: General

Today I found a command to check unread gmail’s messages in terminal. But it just lists these messages’ names without contents.

Following is the command:

 curl -u gmail_account --silent "https://mail.google.com/mail/feed/atom" | perl -ne 'print "\t" if //; print "$2\n" if /<(title|name)>(.*)<\/\1>/;'

For example,xiangxianni is my gmail account:

wraith@wraith-desktop:~$ curl -u xiangxianni --silent "https://mail.google.com/mail/feed/atom" | perl -ne 'print "\t" if //; print "$2\n" if /<(title|name)>(.*)<\/\1>/;'
Enter host password for user 'xiangxianni':
			Gmail - Inbox for xiangxianni@gmail.com
	[Windows 7 Home] Please moderate: "How to set time zone in command line in windows 7"
	WordPress

Related posts:

  1. Check your new gmail messages with gmail notifier
  2. Set Gmail as Ubuntu default Mail Reader using Gnome-gmail
  3. Set Gmail as default Mail Client in ubuntu
  4. Voice and video chat plugin for Google Gmail user in Ubuntu Linux
  5. GmailWatcher – Gmail notifier integrated into Ubuntu’s Messaging Menu

    Tags:

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address