Hi,
Hopefully someone can help with my mail script definition:
I created the mail script as below:
I have two issues / questions:
1) search option is not working.
I have no spool file if there are no users selected. in that case i want to report that from the joblog.log the returncode in the joblog is "UE 014"
So I thought on this syntax: (adopted from the help example)
no_HRO_users.txt=Step 2, Job 2:joblog.log?search="UE 014"?options=IgnoreCase,RangeResult
however the file is not attached when this line exist in the file.
110132 20140604 UE 014 I No user group found for search pattern *HRO* 0 *HRO* *HRO* GROUP
2) inline_ option not working:
preferably I would like to have the joblog message in the mail content instead of in an attachment;
I tried this line instead of the line above:
When I try this I notice remaining commands are not performed (when it was on the first [Attachments] line.)
inline_no_HRO_users.txt=Step 2, Job 2:joblog.log?search="UE 014"?options=IgnoreCase,RangeResult
complete code:
<html><body><p>Hi All, </p><p></p><p>Could you please review the users of your group and confirm that they must be valid? </p><p>Please reply to this mail if any change is needed. </p><p>Thanks,</p> <p></p> <p></p><p></p><i>This email was generated by redwood job ${jobname}:${jobid}.</i></body></html>
[Attachments]
AMO_users.txt = Step 2, Job 1:step1/spool1.txt
HRO_Users.txt = Step 2, Job 2:step1/spool1.txt
ISO_Users.txt = Step 2, Job 3:step1/spool1.txt
Cust_Users.txt = Step 2, Job 4:step1/spool1.txt
Other_users.txt = Step 2, Job 5:step1/spool1.txt
no_HRO_users.txt=Step 2, Job 2:joblog.log?search="UE 014"?options=IgnoreCase,RangeResult
[Headers]
reply-to=${ReplyTo}
[Body]
Content-Type=text/html; Charset=UTF-8