From: Shugo Maeda Date: 2011-12-01T07:07:38+09:00 Subject: [ruby-core:41417] [ruby-trunk - Feature #5692][Assigned] IMAP -- error for msg_att will report the UID Issue #5692 has been updated by Shugo Maeda. Status changed from Open to Assigned Assignee set to Shugo Maeda ---------------------------------------- Feature #5692: IMAP -- error for msg_att will report the UID http://redmine.ruby-lang.org/issues/5692 Author: art lussos Status: Assigned Priority: Normal Assignee: Shugo Maeda Category: Target version: 1.9.2 I am getting errors in msg_att and it would be easier if I could get the UID of the email causing the issue. What I propose is that we pass into the method msg_att the UID and if an error occurs report the UID. def numeric_response n = number ... ... data = FetchData.new(n, msg_att(n)) ... end def msg_att(n) ... ... ... else parse_error("unknown attribute `%s' for UID {%d}", token.value, n) ... end -- http://redmine.ruby-lang.org