The behavior was introduced with the Output Handling feature, where a directory tab for the reports was introduced. The directory is available before the job has ended. Therefore, during the creation of the directory the system doesn't know if it will remain empty.
The behavior will not be changed, as sending empty attachments is something that some may want to do intentionally. For example, sending a file that shows up in the report directory (which can be empty) but would be of interest to the receiver. An empty report is a report although it is empty. Changing this behavior could also affect the following:
- Existing scripts using prep_process_report
- Output scans
The Agent log indicates why the report is empty and the Agent log is attached as well.
An enhancement to the product that would make this option configurable would require the submission of a product enhancement.
Fix Status: No Fix