From: Heesob Park Date: 2008-02-15T16:51:30+09:00 Subject: Re: extract the message body with gmailer Hi, > 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=>'x@x.com',: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 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 Heesob phasis at gmail dot com -- Posted via http://www.ruby-forum.com/.