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

no such file to load -- mime/message (MissingSourceFile) #24

Closed matholroyd closed 14 years ago

matholroyd commented 14 years ago

Hi,

I installed the ruby-gmail gem via "gem install ruby-gmail". The required dependencies appeared to install fine, which were:

shared-mime-info-0.1 treetop-1.4.7 mail-2.2.1 ruby-gmail-0.2.1

The problem is when I try to run require 'gmail' I get the error "no such file to load -- mime/message". Is there another gem I need? Do I need other require statements before the require 'gmail'?

Cheers, ~Mat

justinperkins commented 14 years ago

I think the requirement at the top of this file needs to be removed: http://github.com/dcparker/ruby-gmail/blob/master/lib/gmail/message.rb

justinperkins commented 14 years ago

follow up, yes that worked for me

in my rails project, I unpacked the gem and then removed that line from the file and everything worked fine

matholroyd commented 14 years ago

Cool, I just gave it a go and it works. Haven't checked it thoroughly yet, but seems good so far (so looks like that line is a legacy requirement) .

Thanks, again! ~Mat