How to extract names with the email addresses from .eml file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JLENF
    New Member
    • Aug 2012
    • 1

    How to extract names with the email addresses from .eml file?

    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@h otmail.com>, <user@withoutem ail.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@h otmail.com; John
    sandraulyses@ho tmail.com; Sandra Ulyses
    user@withoutema il.com;
    paul.mc@yahoo.c om, Paul Mc

    In this case, the email user@withoutema il.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
Working...