We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0779fc8 commit 4500a43Copy full SHA for 4500a43
lib/gmail/client/base.rb
@@ -152,7 +152,7 @@ def deliver!(mail=nil, &block)
152
# end
153
def mailbox(name, &block)
154
@mailbox_mutex.synchronize do
155
- name = Net::IMAP.encode_utf7(name.to_s)
+ name = name.to_s
156
mailbox = (mailboxes[name] ||= Mailbox.new(self, name))
157
switch_to_mailbox(name) if @current_mailbox != name
158
@@ -196,7 +196,10 @@ def mail_domain
196
private
197
198
def switch_to_mailbox(mailbox)
199
- conn.select(mailbox) if mailbox
+ if mailbox
200
+ mailbox = Net::IMAP.encode_utf7(mailbox)
201
+ conn.select(mailbox)
202
+ end
203
@current_mailbox = mailbox
204
end
205
0 commit comments