summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/net/imap.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index a5cccdfbea..e1c1897d16 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -227,6 +227,11 @@ Object
: add_response_handler(handler = Proc.new)
Adds a response handler.
+ ex).
+ imap.add_response_handler do |resp|
+ p resp
+ end
+
: remove_response_handler(handler)
Removes the response handler.