From: Bill Davenport Date: 2007-12-13T07:15:24+09:00 Subject: Re: Connecting to Outlook 'Saved Items' folder using win32ol Alex DeCaria wrote: > Bill Davenport wrote: >> I misread. Is 'Saved Items' a folder you created. Look at the structure >> I don't see it. I don't see it in OWA or in Outlook either. >> >> bill > > Bill, > > Yes, actually it is one I created. I should have been more specific. > But I did create it on the server-side of things, so it resides as a > subfolder under my 'Mailbox'. I'm now thinking that may be why I can't > access it, because maybe WIN32OLE can't recognize it. > > Alex I created a 'Saved Items' and was able to access it using WebDAV. Try this in irb. require 'uri' require 'net/http' include Exchange uri_path = URI.parse("http://///exchange//Sent%20Items/.eml") request = Net::HTTP::Get.new(uri_path.path, {"translate" => "F"}) login = "login" pass = "password" request.basic_auth(login, pass) response = Net::HTTP.start(uri_path.host) {|http| http.request(request)} response.body BTW: I have to leave on a trip. Good luck with you project. -bill -- Posted via http://www.ruby-forum.com/.