lib/mbidle/account.rb in mbidle-1.1.0 vs lib/mbidle/account.rb in mbidle-1.1.1

- old
+ new

@@ -17,9 +17,11 @@ when 'Pass' then @pass = match[:value] when 'Path' then @path = match[:value] when 'Inbox' then @folder = File.basename(match[:value]) when 'CertificateFile' then @cert = match[:value] when 'UseIMAPS' then @imaps = (match[:value] == 'yes') + when 'SSLType' + @imaps = %w(IMAPS STARTTLS).include?(match[:value]) end end def matches?(given_path) !(/^#{path}/ !~ given_path)