Hi,
Does anyone know how extract the message body from a single inbox mail
in gmailer?
Aidy
Hi,
Does anyone know how extract the message body from a single inbox mail
in gmailer?
Aidy
On Feb 13, 1:58 pm, aidy [email protected] wrote:
Hi,
Does anyone know how extract the message body from a single inbox mail
in gmailer?Aidy
try GMailer
Hi,
The problem I am having is that the msg body is no consistently
returned
def check_purchase_email
@g = nil
@msg = nil
GMailer.connect(:username=>‘[email protected]’,:password=>‘xxxxxxxx’) do |@g|
@g.messages(:label=>‘inbox’, :read=>false).each_msg {|@msg|
puts "subject: " + @msg.subject
puts "from: " + @msg.sender
puts @msg.body
}
end
@g.disconnect
end
Cheers
Aidy
On Wed, Feb 13, 2008 at 1:00 PM, aidy [email protected] wrote:
Does anyone know how extract the message body from a single inbox
mail in gmailer?
Not exactly the question you are asking, but you do know that GMail has
IMAP and POP3 interfaces, right?
HTH,
Marcelo
Hi,
Hi,
The problem I am having is that the msg body is no consistently
returneddef check_purchase_email
@g = nil
@msg = nil
GMailer.connect(:username=>‘[email protected]’,:password=>‘xxxxxxxx’) do |@g|
@g.messages(:label=>‘inbox’, :read=>false).each_msg {|@msg|
puts "subject: " + @msg.subject
puts "from: " + @msg.sender
puts @msg.body
}
end
@g.disconnect
endCheers
Aidy
As a maintainer of gmailutils, I recommend not using gmailer any more.
GMailer is unstable and might not working under a certain circumstance.
If you have any question about gmailer, send email to me.
Regards,
Park H.
phasis at gmail dot com
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs