A while back there was a flurry of interesting programming challenges. I’ve got my own now. i would be pleased if you took a look and gave feedback or sent up some code. i’ll post my answer in a few days.
This is something I have solved, but it took me a while to get to something reasonably fast and flexible.
Here’s the challenge:
gmail.com allows you to make many variations of your email address. you may already know that you can use plus-addressing (adding a plus sign and then another string) and gmail will deliver it. for example, a gmail address like this: .(JavaScript must be enabled to view this email address) will also get mail for [email protected] and [email protected], etc…
what you may not know is that gmail allows you to use many dot-variations of the mailbox. for example all of these addresses are delivered by gmail to .(JavaScript must be enabled to view this email address): .(JavaScript must be enabled to view this email address), .(JavaScript must be enabled to view this email address), and .(JavaScript must be enabled to view this email address)
challenge: list ALL of the dot-variations for an arbitrary mailbox. (edited to clarify dot-variations, not plus-addressing)
starting with:
.(JavaScript must be enabled to view this email address)
and ending with:
.(JavaScript must be enabled to view this email address)
and all the variations in between.