I installed an application to receive incoming email messages through a message from a service. The controller that receives the messages looks something like this:
class IncomingMailsController < ApplicationController
require 'mail'
skip_before_filter :verify_authenticity_token
def create
message = Mail.new(params[:message])
message_plain = (params[:plain])
Rails.logger.info 'message2.plain:'
Rails.logger.info message2
render :text => 'success', :status => 200
end
end
It successfully delivers the entire email, replies, forwards the history, etc. The problem is that I would like to receive only the text of the answer.
I am currently getting:
That not a bad idea. Lets try that out.
On Nov 17, 2010, at 4:18 PM, XXXXX @ XXXXXXXX wrote:
> There a new reply:
And I would like to know how rails devs only get the answer:
That not a bad idea. Lets try that out.
Ideas? Thanks
source
share