You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to parse yahoo emails in order to extract their body of plain text and ignore the attachments. I first put the received email through the MAIL gem's receive function and then it goes through MMS2R after which I run regular expressions on mail.body but the problem is that after MMS2R parses the yahoo email, it somehow corrupts the body field so when I go mail.body it gives me
ArgumentError (invalid byte sequence in UTF-8):
app/controllers/emails_controller.rb:25:in `create'
mail.body works fine upto the point where I go "email = MMS2R::Media.new(mail)"
It seems to work fine with gmail, hotmail and every other web client except for yahoo. Is this a known issue? I am using
"ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2011.03"
The text was updated successfully, but these errors were encountered:
As I said in our email correspondance, I would be more than happy to try to replicate the issue in my development environment, but a I need the original email data to do so. When you send me a sample, please zip or tar it before sending so that the email data itself is not modified before I get it. The original email data has information in its headers that is important inspect, and if you only send me text output of your software I have no way to determine if the encoding issue is because of MMS2R code, because of Ruby stack you ran it on, or because of your coding implementation.
I am trying to parse yahoo emails in order to extract their body of plain text and ignore the attachments. I first put the received email through the MAIL gem's receive function and then it goes through MMS2R after which I run regular expressions on mail.body but the problem is that after MMS2R parses the yahoo email, it somehow corrupts the body field so when I go mail.body it gives me
ArgumentError (invalid byte sequence in UTF-8):
app/controllers/emails_controller.rb:25:in `create'
mail.body works fine upto the point where I go "email = MMS2R::Media.new(mail)"
It seems to work fine with gmail, hotmail and every other web client except for yahoo. Is this a known issue? I am using
"ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2011.03"
The text was updated successfully, but these errors were encountered: