vmail 0.9.5 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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