gmailgem / gmail

A Rubyesque interface to Gmail, with all the tools you'll need.
Other
397 stars 119 forks source link

calling 'message' on email object returns 'wrong number of arguments (1 for 0 ) #125

Closed bootstraponline closed 9 years ago

bootstraponline commented 9 years ago

From @shawnbro on December 11, 2014 15:44

Any idea why?

Here is the block:

gmail.inbox.emails(:unread, from: sent_email.to_email).each do |inbox_email| puts "INBOX EMAIL: #{inbox_email.message}" end

which throws this error:

ArgumentError: wrong number of arguments (1 for 0) from /Users/.../.rvm/gems/ruby-2.1.2/gems/gmail-0.4.2/lib/gmail/client/imap_extensions.rb:7:in msg_att' from /Users/.../.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/imap.rb:2210:innumeric_response' from /Users/.../.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/imap.rb:2152:in response_untagged' from /Users/.../.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/imap.rb:2132:inresponse' from /Users/.../.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/imap.rb:2058:in parse' from /Users/.../.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/imap.rb:1181:inget_response' from /Users/.../.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/imap.rb:1089:in receive_responses' from /Users/.../.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/imap.rb:1075:inblock in initialize'

Copied from original issue: nu7hatch/gmail#125

bootstraponline commented 9 years ago

From @shawnbro on December 11, 2014 15:54

This Pull request fixes the issue:

https://github.com/nu7hatch/gmail/pull/122/files