[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

extract the message body with gmailer

aidy

2/13/2008 6:59:00 PM

Hi,

Does anyone know how extract the message body from a single inbox mail
in gmailer?

Aidy
4 Answers

Junkone

2/14/2008 1:07:00 AM

0

On Feb 13, 1:58 pm, aidy <aidy.le...@googlemail.com> wrote:
> Hi,
>
> Does anyone know how extract the message body from a single inbox mail
> in gmailer?
>
> Aidy

try GMailer

testautomated6

2/14/2008 4:08:00 PM

0

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

Marcelo

2/14/2008 4:24:00 PM

0

On Wed, Feb 13, 2008 at 1:00 PM, aidy <aidy.lewis@googlemail.com> 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

Heesob Park

2/15/2008 7:52:00 AM

0

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