Skip to content
Newer
Older
100755 11 lines (8 sloc) 460 Bytes
c1af5eb @maxim Add more scripts.
maxim authored Mar 6, 2011
1 #!/usr/bin/env ruby
2 # Intended for use with geektool.
3
4 require 'rubygems'
5 require "#{File.expand_path(File.dirname(__FILE__))}/support/helpers"
6
7 options_for __FILE__, :user => { :required => true, :text => 'Gmail username.'},
8 :pass => { :required => true, :text => 'Gmail password.'}
9
10 count = `curl --silent https://#{@user}:#{@pass}@mail.google.com/mail/feed/atom/inbox | grep fullcount | grep -o '[0-9]\\+'`.strip
11 puts "#{count} emails"
Something went wrong with that request. Please try again.