CLC-3991 Really ugly script to generate lists of emails based on active UIDs
CLC-3991 Add clarifying comments, improve formatting of sql
Merge pull request #2750 from ctweney/clc-3991

CLC-3991 Really ugly script to generate lists of emails based on active UIDs