[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-Modules] Mail::Address and Mail::Address->parse



Hello all,

I have been working for a while now trying to use the Mail::Address
module.  My purpose is to go through a large mail file and extract all
the e-mail addresses from the body of text.  This body of text includes
the mail header info as well as the mail body info.  I want to extract
the e-mail addresses from this text file.

I have been working with the Mail::Address->new(); command.  I can put
the proper arguments in between the parenthesis and use print
$addr->address() command to extract the address portion of the address.
My problem is I have a line of text and need to extract the persons name
and e-mail address.  The Mail::Address->new command requires 3
parameters: the person's name, the e-mail address and a comment.  My
problem here is the command requires 3 arguments and I only have 1.

So, I look further and there is a command to parse the line,
Mail::Address->parse(line).  I cannot figure out how this command
works.  Can anyone shed a little light on this issue.  My documentation
doesn't show how to use it.

Please cc: me at my e-mail address robpoll1@bellsouth.net

Thanks for any help!

Robert Pollard


==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org