Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: Gmailer
Park Heesob
5/6/2007 2:42:00 AM
Hi,
>From: "David Alm" <david.alm@googleswonderfulgmail.com>
>Reply-To: ruby-talk@ruby-lang.org
>To: ruby-talk@ruby-lang.org (ruby-talk ML)
>Subject: Gmailer
>Date: Sun, 6 May 2007 04:00:04 +0900
>
>Hello,
>
>I'm experimenting with the Gmailer gem.
>
>I'd like to extend it to be able to pull down Contact *groups*. Currently,
>it does "frequently mailed" and "all".
>
>Does anyone know where to locate such API info?
>
>Thanks,
>Dave
>
Currently, Gmailer supports "frequently mailed" and "all".
You can get contact list like this:
GMailer.connect(name, pwd) do |g|
puts "Your frequently used addresses:"
g.fetch(:contact=>"freq").each do |item|
puts "Name: #{item.name} Email: #{item.email}"
end
puts "Your all addresses:"
g.fetch(:contact=>"all").each do |item|
puts "Name: #{item.name} Email: #{item.email}"
end
end
The next version will support user defined contact groups.
Regards,
Park Heesob
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Gmailer
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password