Possible Duplicate:
Get e-mail addresses from Gmail messages received

In Gmail, you can tag one or more emails with a Label:

enter image description here

I know I can select the label to see the emails in question, but what I want is to get everyone's email address associated with these labels for export. In the above image, I'd want the email addresses of Lifestreams Blog, Ozh, and WordPress since they're tagged 'planetozh'.


Let's assume I can download all the emails into Mozilla Thunderbird and view the emails in an ordered list with the label set correctly (using IMAP). How could I export the list of email addresses (duplicates are not a problem) this way?

  • BTW, where did you get this ancient gmail interface?
    – user
    Mar 23, 2012 at 3:57
  • Dunno. Just googled for "gmail labels" or something. Didn't want to take a picture of my own email client and go through blacking out and possible confusion.
    – Kyle Boddy
    Mar 23, 2012 at 4:08
  • Very similar to webapps.stackexchange.com/questions/17492/… which was closed as a duplicate of webapps.stackexchange.com/questions/9813/…
    – ale
    Mar 23, 2012 at 15:55
  • Those help, sort of - they don't talk about labels, though. I have hundreds of thousands of emails in my account, which isn't going to be all that useful. While I have some experience with shell scripting and database management, I was hoping the answer wouldn't be that... coarse.
    – Michael B
    Mar 23, 2012 at 18:19
  • I strongly disagree with this being closed as an exact duplicate. I wanted to offer a bounty on this, because those posts do NOT answer my question.
    – Michael B
    Mar 26, 2012 at 9:24

1 Answer 1


label:planetozh in the search bar should return any emails with that tag. Using an IMAP account, you can pull in those labels and make a contact list. Export the contact list to excel or csv.

  • 1
    OP said, "I know I can select the label to see the emails in question"
    – slhck
    Mar 22, 2012 at 18:44
  • Would downvote if I could, alas I'm only 106 rep on SuperUser. I need email addresses, not emails.
    – Kyle Boddy
    Mar 22, 2012 at 18:45
  • Kobaltz edited his answer. Where would I go in Thunderbird to create said contact list? I have it imported via IMAP and have the messages open in the label.
    – Kyle Boddy
    Mar 22, 2012 at 21:51
  • I don't know if Thunderbird will work. Does it have an address book or contacts module? Last time I looked at it was a dealbreaker since I did not want to use the Lightning Calendar thingy.
    – kobaltz
    Mar 22, 2012 at 21:58
  • It has both. But I have Outlook open with them imported and the label up. I select them all, right-click, and nothing promising comes up. Ideas?
    – Kyle Boddy
    Mar 22, 2012 at 22:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.