Inbound Emails Generated by ATF are omit the message_id, direct and from header informationDescriptionWhile testing to Generate a Security Inc from an email in ATF.The phishing email is not being generated in the target and security incidents are not created.If you test the generation manually but clicking "NEW" in the sys_email table the same issue occurs.When this done manually via an email to the instance there are no issues.Steps to Reproduce Create a basic test in ATF with the following steps1.Generate Inbound Email (subject: Potential Phish: Tests sample 123)2. Open an Existing Record (this is to open the record created at step 1)3. Click a UI Action (Reprocess Email)4. Open an Existing Record (this is to open the record created at step 1)Expected behaviour:In step 4 you will see data has been entered in the "Target" field after the reprocess of the email.Actual behaviour:Field is still emptyYou will also see similar errors to the below in the sys_email record:Information Create Phishing Email : did not create or update sn_si_phishing_email using current EMAIL.7e1e8d41dba16c10b8978a8b3a961983Information Stop processing detected after executing script: Create Phishing Email EMAIL.7e1e8d41dba16c10b8978a8b3a961983Information Skipping script 'Create Enhancement', condition 'email.subject.indexOf("Enhancement:") == 0' failedWorkaroundThe ATF step generates an email record with no message id As a workaround you can make a few changes to your ATF test.After the Generation step you can add a step to update the Generated record with a value to the message_id field of the email record before re-processing it.You will also need to add a from header to the headers field in the email record before re-processing it. The direct field of the email will also be empty, however the recipients field does contain the required information. Any logic which expects to process a value in the direct field will need to be amended. For example: var email_direct;if (JSUtil.nil(email.direct)) { if (JSUtil.notNil(email.recipients)) { email_direct = email.recipients; } else { gs.warn("email.direct and email.recipients are both null!"); }} else { email_direct = email.direct;}// Use email_direct in rest of script instead of email.direct Related Problem: PRB1461038