Skip to content

Commit

Permalink
Handle PLAIN without LOGIN
Browse files Browse the repository at this point in the history
darcs-hash:20080904055139-92d64-11eeb2bf0b24d4a6d8da2ee5c59b79e132fb02c3.gz
  • Loading branch information
aredridel committed Sep 4, 2008
1 parent 5382e79 commit 55ca0aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions campingatmailbox.rb
Expand Up @@ -490,6 +490,8 @@ def post
begin
if imap_connection.capability.include? 'AUTH=LOGIN'
imap_connection.authenticate('LOGIN', input.username, input.password)
elsif imap_connection.capability.include? 'AUTH=PLAIN'
imap_connection.authenticate('PLAIN', input.username, input.password)
else
imap_connection.login(input.username, input.password)
end
Expand Down

0 comments on commit 55ca0aa

Please sign in to comment.