From: noreply@... Date: 2005-09-23T22:32:31+09:00 Subject: [ ruby-Patches-2505 ] patch for imap.rb -- error handling when waiting for continuation request response Patches item #2505, was opened at 2005-09-23 15:24 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1700&aid=2505&group_id=426 Category: Ruby1.8 Group: None Status: Open Resolution: None Priority: 3 Submitted By: Martin Povoln�� (mpovolny) Assigned to: Nobody (None) Summary: patch for imap.rb -- error handling when waiting for continuation request response Initial Comment: We are using heavily Ruby IMAP library for communication with cyrus imap server. And we have discovered then when [ruby] client waits for continuation request response, it only accepts request for more data and it hangs [infinite wait] when it gets error code. This happends for example if you are trying to store a message in a folder where you don't have sufficient access rights. You send command with continuation request do the server, tell it which folder you want to write to and wait for server to ask you for data. Cyrus will give you immediately error message. Maybe the server that the library was tested with would accept whole message and then give error so that the library would seem to work right. But giving error code as soon as possible is perfectly valid and is also OK according to the RFC. So following patch agains imap.rb from latest ruby 1.8.3 fixes this behaviour. Please tell me, what you think. Regards, martin (dot) povolny (at) solnet (dot) cz ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1700&aid=2505&group_id=426