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/.