vmail 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vmail/imap_client.rb +3 -1
- data/lib/vmail/version.rb +1 -1
- metadata +2 -2
data/lib/vmail/imap_client.rb
CHANGED
@@ -62,7 +62,8 @@ module Vmail
|
|
62
62
|
|
63
63
|
def open
|
64
64
|
@imap = Net::IMAP.new(@imap_server, @imap_port, true, nil, false)
|
65
|
-
@imap.login(@username, @password)
|
65
|
+
log @imap.login(@username, @password)
|
66
|
+
list_mailboxes # prefetch mailbox list
|
66
67
|
end
|
67
68
|
|
68
69
|
def close
|
@@ -152,6 +153,7 @@ module Vmail
|
|
152
153
|
map {|name| MailboxAliases.invert[name] || name}
|
153
154
|
@mailboxes.delete("INBOX")
|
154
155
|
@mailboxes.unshift("INBOX")
|
156
|
+
log "loaded mailboxes: #{@mailboxes.inspect}"
|
155
157
|
@mailboxes.join("\n")
|
156
158
|
end
|
157
159
|
|
data/lib/vmail/version.rb
CHANGED