Hello Paul,
First, sorry for my bad english. I from Brazil.
I've been watching your post with the program ExtractEmail.pl and this was very helpful to me.
My problem is I have in my file .eml people's names with the email address and would like to extract the name too.
Example of my file:
John <john_padilha4@hotmail.com>, Sandra Ulyses <sandraulyses@hotmail.com>, <user@withoutemail.com>, Paul Mc <paul.mc@yahoo.com>
Basically it will have to extract the person's name along with email, separated by semicolons. output:
john_padilha4@hotmail.com; John
sandraulyses@hotmail.com; Sandra Ulyses
user@withoutemail.com;
paul.mc@yahoo.com, Paul Mc
In this case, the email user@withoutemail.com not have the user name, so it is blank.
Can you help me, my knowledge comes down to bash and perl does not understand anything.
Thank you!
Jairo