in reply to Re: Using Net::IMAP::Simple to read emails
in thread Using Net::IMAP::Simple to read emails

hi bgreenlee, you are right. there is no tyg identifiying for body. i liked to know how to use the Email::Simple to getting any field from the email. The code below bring not any value:
foreach my $msg( 1 .. $number_of_messages ) { my $email = Email::Simple->new( join '', @{$server->get( $msg +)} ); print $email->header('Subject'), "\n"; }

Replies are listed 'Best First'.
Re^3: Using Net::IMAP::Simple to read emails
by bgreenlee (Friar) on Dec 22, 2004 at 23:25 UTC

    I'm not sure what the problem is. I just tried it out myself and it worked fine. Try either stepping through it with the perl debugger (have a look at perldebug and perldebtut if you're not familiar with it), or using Data::Dump to dump out the value of $email. And make sure you use strict and use warnings.

    -b

      i dont know, whats happen but i got everytime blank-page!