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
790 stars 123 forks source link

ruby-gmail 0.2.1: Calling #label gives "ArgumentError: wrong number of arguments (0 for 1)" #27

Closed purp closed 11 years ago

purp commented 14 years ago

Lines 51-55 of lib/gmail.rb:

# gmail.label(name)
def label(name)
  mailboxes[name] ||= Mailbox.new(self, mailbox)
end
alias :mailbox :label

Change "mailbox" to "name" in line 53 and it's all better.

jackdempsey commented 14 years ago

FYI this has been fixed in some of the forks:

http://github.com/tinomen/ruby-gmail/commit/b64779f9a352168f46d87a7bbc3d11872298487e

http://github.com/jamster/ruby-gmail/commit/631155a336af634ed7317bfb1754db0a08c7d071

wengzilla commented 11 years ago

This has been fixed in master. Should this issue be closed?