Check Gmail Unread messages in terminal
This post was written by admin on October 12, 2009
Posted Under: General
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:
- Check your new gmail messages with gmail notifier
- Set Gmail as Ubuntu default Mail Reader using Gnome-gmail
- Set Gmail as default Mail Client in ubuntu
- Voice and video chat plugin for Google Gmail user in Ubuntu Linux
- GmailWatcher – Gmail notifier integrated into Ubuntu’s Messaging Menu
Tags: tips
