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

ArgumentError: wrong number of arguments (0 for 1) when calling Gmail.label #26

Closed ehogberg closed 13 years ago

ehogberg commented 14 years ago

Version: 0.2.1

Title is hopefully self-explanatory. When calling Gmail.label with known good label, receive the following stack:

ArgumentError: wrong number of arguments (0 for 1) from /usr/lib/ruby/gems/1.8/gems/ruby-gmail-0.2.1/lib/gmail.rb:53:in mailbox' from /usr/lib/ruby/gems/1.8/gems/ruby-gmail-0.2.1/lib/gmail.rb:53:inmailbox'

Thoughts?

gilltots commented 14 years ago

change line 53 in gmail.rb from Mailbox.new(self,mailbox) to Mailbox.new(self,name) to fix this