Standardize debug logs path.
Limit mail files to search.
Standardize paths.
Trace the flow of messages to and from the Mainframe.
Rename trace_msgs to trace_erp_msgs.