Gerard Robin wrote: > Hello, Hello,
> I use Net::POP3 for donwload the header of my messages. > ..... > $pop = Net::POP3->new($server); > ....... > $top = $pop->top($msgnum); > ....... > my ($from) = grep /^From:/i, @lines; > my ($to) = grep /^To:/i, @lines; > my ($subject) = grep /^Subject:/i, @lines; > ....... > > When To is: > To: beginners@perl.org > it's ok. > > But if To is: > To: Daniel Smith <[EMAIL PROTECTED]>, beginners@perl.org > I get only: > To: Daniel Smith <[EMAIL PROTECTED]>, > > Where is the final part of the To ? > And how can I get it ? It is on the lines imediately following the 'To:' line that begin with whitespace. See section "2.2.3. Long Header Fields" of RFC 2822: ftp://ftp.rfc-editor.org/in-notes/rfc2822.txt John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>