I am trying to find the custom script which emails the conents of the search results specific to the users. I have a huge result for my search , in that result they are n of user's with their email ids , so i need the data that belongs to the user in a email.
Can any one help in customizing the sendemail.py script to do this pls ?
my sample output data is something like this :
IssueTracked IssueResovled NetworkGroup EmailsInGroup
30 20 A firstname.lastname@example.org,email@example.com
50 30 A firstname.lastname@example.org,email@example.com
70 20 B firstname.lastname@example.org,email@example.com
71 50 C firstname.lastname@example.org
Without writing the actual code, I'll answer in terms of methodology.
Whatever program you use to parse the results, you need it to read each line into an array such that you have:
ARRAY = contents of IssueTracked for that line
ARRAY = contents of IssueResolved for that line
ARRAY = contents of NetworkGroup for that line
ARRAY = contents of EmailsInGroup for that line
Then you iterate through your array of arrays (or line by line as input comes in) to email all users in ARRAY with the body contents the headers and values from ARRAY, ARRAY, and ARRAY.
It shouldn't be that much work in all. You could do it in nearly any language, too.
Thanks jtrucks..I had the idea of arrays..but couldn't start of like while streaming the searchresults in the search Window how can we group them into arrays?..can u give me initial steps pls