From: Tadeusz Bochan Date: 2009-08-24T03:11:53+09:00 Subject: Re: retrieving Yahoo mail with Net::IMAP Hi Greg, Thanks for all that. I will follow the details up in due course. I managed to get imap.gmail working and using Ruby to read the messages, though I found that Net::IMAP was a bit clumsy and daunting for me. The other good news is that I finally found how to access the archive tool in Yahoo:! (by accident of course!) Here's the method for anyone who is interested: 1. Select 'Options' on the main page 2. Select 'Mail Options' 3. Select 'Filters' 4. Select 'Create or Edit filters' 5. Select 'Options' (On top rhs) 6. And Voila! There on the rhs is the option, among others, to archive! This procedure is NOT documented in the Yahoo help, nor have I found any other more direct way of locating this option screen. I then saved the direct url so I don't have remember all that the next time, but Yahoo may fix this crazy behaviour by then. The facility allows you to choose a folder to archive, and a date range. It then zips all the *.eml messages and downloads them to a location of your choosing. On extracting the files, you can read them with Outlook (at least) or scan them with a Ruby script, which is what I need to do. Great! G_ F_ wrote: > From my own experiments with Yahoo and a lot of investigation, I found > that they only allow IMAP to mobile devices. There's a couple services > that enable that access to them, but Yahoo doesn't seem to have it > directly. They're probably sniffing some client signature or allowed > hosts that act as front-ends and refusing any that are not in their > "privileged party" list. > > As others said, the Yahoo Pro service allows IMAP. For my use I couldn't > require that for users so I gave up. > > gmail does have IMAP. Their IMAP is slower than using their RSS > (actually ATOM) to check the mail queue, so I suggest having a client > that makes the RSS request, then another that falls back to IMAP to > manage the queue or retrieve individual messages. Here's a jumping-off > point if you want to try the RSS "thang": > > http://www.forevergeek.com/2004/10/gmail_rss_feed/ > > Parsing the feed is easy enough using Hpricot (and probably Nokogiri). I > don't remember if they got fancy with namespaces, which can make life > hell when dealing with arbitrary feeds, but even if they do, since > you're only interested in gmail you can work something up specific to > them easily. > > It also seemed like Google's IMAP servers didn't implement the full > spec. Maybe that's because their system wasn't designed for mail storage > from day one? > > Greg -- Posted via http://www.ruby-forum.com/.