Hello list:\n\nI am accessing outlook with ruby through a MAPI connection. I have\ncreated a folder through OWA called 'archive'. My goal is to process\nthe message and then move it into this folder. I am trying to find out\nhow to 'set' or reference this folder in the code. I have been\nunsuccessful and thought I would reach out to see if anyone can point\nme in the right direction... example of my code:\n\nol = WIN32OLE.new('Outlook.Application')\nclass OC; end\nWIN32OLE.const_load(ol, OC)\nmapi = ol.GetNameSpace('MAPI')\ninbox = mapi.GetDefaultFolder(OC::OlFolderInbox)\nitems = inbox.items\nitems.sort('ReceivedTime', OC::OlAscending)\n\n### parse message and move to archive folder\nitems.each do |message|\nif message.UnRead\nputs "This message is unread!"\n###parse message\nmessage.Move(archive_folder)\nelse\nputs "Nothing to process.... ")\nend\nend\n\n\nI am not quite sure how to set the folder I created called 'archive'.\ndoes anyone have any ideas how I would set this in a variable somehow,\nso I can reference like so:\narchive_folder = mapi.Folders("archive") <-\-\-\-\-\-\-(this does not work\nBTW)\n\nthank you in advance!