projects
/
embrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad6d02a
)
make use of ssl optional
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 9 Apr 2006 18:58:40 +0000
(20:58 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 9 Apr 2006 18:58:40 +0000
(20:58 +0200)
lib/embrace/imap.rb
patch
|
blob
|
history
diff --git
a/lib/embrace/imap.rb
b/lib/embrace/imap.rb
index 2fc3af434af2fbe21caa694ea6d61294fe75fd2d..f0ae8a5538b32b5155322365372a81b37cb2a38b 100644
(file)
--- 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 = ""