vmail 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vmail/imap_client.rb +1 -4
- data/lib/vmail/version.rb +1 -1
- metadata +2 -2
data/lib/vmail/imap_client.rb
CHANGED
@@ -161,12 +161,9 @@ module Vmail
|
|
161
161
|
"spam" => "Spam",
|
162
162
|
"trash" => "Trash"}
|
163
163
|
@mailbox_aliases = {}
|
164
|
-
if @mailboxes.nil?
|
165
|
-
list_mailboxes
|
166
|
-
end
|
167
164
|
aliases.each do |shortname, fullname|
|
168
165
|
[ "[Gmail]", "[Google Mail" ].each do |prefix|
|
169
|
-
if
|
166
|
+
if self.mailboxes.include?( "#{prefix}/#{fullname}" )
|
170
167
|
@mailbox_aliases[shortname] = "#{prefix}/#{fullname}"
|
171
168
|
end
|
172
169
|
end
|
data/lib/vmail/version.rb
CHANGED