Page 1 of 1

Save Email Notifications to File

Posted: Mon Nov 07, 2005 10:46 am
by velevi
I was trying to find the spot in the 'dowalk' script where emails are sent to notify a manager of a walk completion or to send a manager the query log for a given profile. I'd like to save the query logs in particular to some kind of text file on a weekly basis (using a naming convention based on the week's starting date).

Can you give me a little advice how to go about that?
Thanks much!!

Save Email Notifications to File

Posted: Mon Nov 07, 2005 12:36 pm
by mark
Find where it's <exec>ing "sendmail". Use <write> to write to a file. Use <strfmt> with %at to generate a filename based on the current date/time.

Save Email Notifications to File

Posted: Mon Nov 07, 2005 4:10 pm
by velevi
Thank you. That worked out very well.