dcparker / ruby-gmail

A Rubyesque interface to Gmail. Connect to Gmail via IMAP and manipulate emails and labels. Send email with your Gmail account via SMTP. Includes full support for parsing and generating MIME messages.
http://dcparker.github.com/ruby-gmail
792 stars 123 forks source link

undefined local variable or method `name' for #<Gmai #21

Closed galetahub closed 10 years ago

galetahub commented 14 years ago

undefined local variable or method name' for #<Gmail:0x..fb6710230 (brainberry.tech@gmail.com) disconnected> /var/www/mts-tech/vendor/plugins/ruby-gmail/lib/gmail.rb:122:inin_label' /var/www/mts-tech/vendor/plugins/ruby-gmail/lib/gmail.rb:38:in `inbox'

Line "mailboxes[name] ||= Mailbox.new(self, mailbox)" Change to "mailboxes[mailbox.name] ||= Mailbox.new(self, mailbox)"

jackbit commented 14 years ago

I have faced this bugs before, i advice you to use plugin not gem, and edit gmail.rb at line 122, become like this:

mailboxes[mailbox]

after that reload your server.

Good Luck :) Yacobus Reinhart www.reinhartlab.com

wengzilla commented 11 years ago

This looks like it has been corrected with the above suggestion.