From c189b3f91201f97fb0e3090d939a1db51fca9a29 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 9 Apr 2006 20:58:40 +0200 Subject: [PATCH] make use of ssl optional --- lib/embrace/imap.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/embrace/imap.rb b/lib/embrace/imap.rb index 2fc3af4..f0ae8a5 100644 --- a/lib/embrace/imap.rb +++ b/lib/embrace/imap.rb @@ -40,7 +40,10 @@ module Embrace::IMAP def initialize(server_info, mboxes) @server_info = server_info - @connection = Ecore::Con::Server.new(2 | 16, + flags = 2 + flags |= 16 if @server_info.use_ssl + + @connection = Ecore::Con::Server.new(flags, @server_info[:host], @server_info[:port]) @buffer = "" -- 2.30.2