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

Stringify_Keys Error for Ruby-Gmail 0.2.1 #25

Closed jackbit closed 11 years ago

jackbit commented 14 years ago

I wrote this in my ruby controller:

@imap = Gmail.new(current_user.google_email,
                              current_user.google_password) do |g|
  emails = g.inbox.emails(:after => 2.days.ago)
  emails.each do |email|
    logger.debug "................................................................................."
    logger.debug email
    logger.debug email.message
    logger.debug "................................................................................."

When I access "logger.debug email.message", i got this error: .................................................................................

Gmail::Message:0xf5ba518

NoMethodError (undefined method `stringify_keys!' for #String:0xf5b35ec):

Please help me how to solve this error in ruby-gmail 0.2.1

Thanks, Yacobus

jackbit commented 14 years ago

Any Solution for this?

danijel commented 12 years ago

I'm having same problem, looks like error is throw in Mail.new(_body) in message.rb. Any ideas?

danijel commented 12 years ago

I figured it out. I had another object named Mail in my rails up so that was causing the problem.

myobie commented 11 years ago

Because of the age of this issue and the comment that it might be solved, I'm closing this out.