Is it possible to extract all email addresses...

by rafsco
3 replies
Is it possible to extract all email addresses I have in my gmail account and that have a certain label? Let's say I have messages labeled as "friend", is there a way to extract all the "friend" email addresses?

Thank you guys...
#addresses #email #extract
  • Profile picture of the author driveyourtech
    I would guess that you cannot as Gmail and Contacts are 2 separate types in the Gmail interface.

    You may be able to through the API, but I'm not sure if it is worth the time and expense to do the programming. Maybe if it is marketable?
    {{ DiscussionBoard.errors[9407499].message }}
    • Profile picture of the author kilgore
      I haven't messed with Gmail internals in a while, but if I recall, Gmail is IMAP compliant and labels are accessible as IMAP folders. So in theory you could use an IMAP client (most programming languages have these either built in or as standard libraries you can call) to connect to your Gmail account. You could then download and parse the messages with that tag to get the email addresses you're looking for.

      There are probably other ways to do this as well (API, etc.), but off the top of my head this would be my quick and dirty approach.
      {{ DiscussionBoard.errors[9408293].message }}
  • Profile picture of the author kaufenpreis
    Banned
    Click "Contacts" on the left sidebar of your Gmail front page. The link is located below links to your mail inbox and stored folders.


    Click "Export" in the upper-left corner of the Contacts menu. Select options to extract all of your contacts' addresses or only a specific group you have created. You can also select the file type the extracted file will be saved in.
    {{ DiscussionBoard.errors[9412481].message }}

Trending Topics