WinRb / Viewpoint

A Ruby client access library for Microsoft Exchange Web Services (EWS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get search folders and count items

Bluewisp opened this issue · comments

Hello

How can we get search folders? I need to get counts for several search folders. I checked all methods from my new Viewpoint::EWSClient object. Microsoft says to use find_folders to get searchfolders. But I don't get them, I only get normal mailbox folders.

require 'viewpoint' include Viewpoint::EWS endpoint = 'https://exchangeserverurl' user = 'someuser' pass = 'somepass' cli = Viewpoint::EWSClient.new endpoint, user, pass x = cli.find_folders x.each { |b| puts b.name }