ruby on rails - How can I download all the emails from gmail acount to my local machine -


i newbie on ruby on rails , gems...if 1 me figure out gems or script downloads emails gmail local machine

i heard ruby 'net/imap'

but using not able fetch or authenticate

imap = net::imap.new('mail.google.com') imap.authenticate('login', 'bmonal125', 'aaaa') 

please suggest me ...

i need kind of technical suggestion overcome it

thanks in advance

have @ http://rubydoc.info/gems/gmail, there detailed examples on how authenticate , retrieve messages.

if authentication not work, quite possible imap access not configured in gmail. have @ support.google.com/mail/troubleshooter/1668960?hl=en#ts=1665018 on how enable it


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -