lib/ronin/sessions/imap.rb in ronin-0.2.2 vs lib/ronin/sessions/imap.rb in ronin-0.2.3

- old
+ new

@@ -27,22 +27,13 @@ module Ronin module Sessions module IMAP include Session - setup_session do - parameter :host, :description => 'IMAP host' - parameter :port, :description => 'IMAP port' - - parameter :imap_auth, :description => 'IMAP authentication mode' - parameter :imap_user, :description => 'IMAP user' - parameter :imap_password, :description => 'IMAP password' - end - protected def imap_connect(options={},&block) - require_params :host + require_variable :host options[:port] ||= @port options[:auth] ||= @imap_auth options[:user] ||= @imap_user options[:password] ||= @imap_password