tag:blogger.com,1999:blog-284600789737488130.post1807503088540316332..comments2024-02-07T02:22:20.642-05:00Comments on Ruby on Windows: RubyGarden Archives: Scripting OutlookDavid Mullethttp://www.blogger.com/profile/05597492688893461137noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-284600789737488130.post-27891910406529864972010-01-30T11:43:10.424-05:002010-01-30T11:43:10.424-05:00It looks like nowadays you have to use msg.UnRead ...It looks like nowadays you have to use msg.UnRead instead of msg['UnRead'] (etc.)<br /><br />Also, I'm unable to get it to list more than 30 messages. I get:<br />"WIN32OLERuntimeError: (in OLE method `SenderName': )<br />OLE error code:4096 in Microsoft Office Outlook<br />Your server administrator has limited the number of items you can open simultaneously. Try closing messages you have opened or removing attachments and images from unsent messages you are composing.<br />HRESULT error code:0x80020009"<br /><br />I've tried closing each message with msg.Close(OutlookConst::OlDiscard), but it doesn't work. Is there something else I should do to list more than 30?echristophersonhttps://www.blogger.com/profile/02231286173511891124noreply@blogger.com