lib/imap_guard/guard.rb in imap_guard-2.0.0 vs lib/imap_guard/guard.rb in imap_guard-2.0.1
- old
+ new
@@ -35,10 +35,10 @@
# Authenticates to the given IMAP server
# @see http://www.ruby-doc.org/stdlib-1.9.3/libdoc/net/imap/rdoc/Net/IMAP.html#method-c-new
# @return [void]
def login
- @imap = Net::IMAP.new(@settings.host, @settings.port, true, nil, false)
+ @imap = Net::IMAP.new(@settings.host, port: @settings.port, ssl: true)
@imap.login(@settings.username, @settings.password)
verbose.puts "Logged in successfully"
end
# Selects a mailbox (folder)