Script to generate emailId based analysis for a given label