Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File.foreach options[:pwdfile] do |line|
- begin
- imap = Net::IMAP.new options[:host], 993, true
- result = imap.login options[:user], value
- puts "SUCCESS"
- rescue Net::IMAP::NoResponseError
- warn "FAILED: No Repsonse from Server"
- rescue Net::IMAP::ResponseError
- warn "FAILED: Bad Response"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement