Working script to calculate related email addresses.