1

With a Gmail [email protected] address, you'll also receive email sent to [email protected] addresses, very handy for creating filters.

I often [email protected] when signing up to websites, so if I end up getting lots of spam sent to that address, I know who to blame.

But what's a good way to find a list of all username+anything@ addresses in my Gmail spam folder?

I'd prefer to do this within the web client if possible. Next best is using external client such as Outlook or Opera mail but without having to download lots of mail if possible. I don't really want to download spam emails.

2 Answers 2

1

Not sure it can be done on the web client as it strips away all labels when a message goes into the spam folder.

As for not wanting to DL a bunch of spam, I'd use IMAPv4 instead of POP in your preferred e-mail client. All messages stay on the server, it just downloads headers.

1

In the end I made a simple Python script.

Using imaplib and email, it gets a list of emails in your [Gmail]/Spam folder, and lists those containing username+ in the "To" field.

Get it here:

https://github.com/hugovk/gmail/blob/master/spamify.py

1
  • 1
    @pnuts Accepted!
    – Hugo
    Commented Nov 14, 2017 at 17:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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