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 default Mail Client in ubuntu
  3. Cloudsn-gnome notifier for new mails (pop3, gmail, imap), rss, tweets
  4. Send and Receive emails with Thunderbird in Ubuntu Linux
  5. Quickly access hard drive contents in ubuntu with Hawkscope

    Tags:

    Add a Comment

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