Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. File.foreach options[:pwdfile] do |line|
  2. begin
  3. imap = Net::IMAP.new options[:host], 993, true
  4. result = imap.login options[:user], value
  5. puts "SUCCESS"
  6. rescue Net::IMAP::NoResponseError
  7. warn "FAILED: No Repsonse from Server"
  8. rescue Net::IMAP::ResponseError
  9. warn "FAILED: Bad Response"
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement