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

Special characters in the :gm search option #71

Open nritholtz opened 10 years ago

nritholtz commented 10 years ago

Using special characters in the :gm option, results in a incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string) (Encoding::CompatibilityError)

Example to reproduce: gmail.inbox.emails(:gm => '€')

I've even tried doing gmail.inbox.emails(:gm => '€'.force_encoding('ascii-8bit')), however it results in a Could not parse command (Net::IMAP::BadResponseError)