Hi Zeeshan
Thank you for contacting the community forum.
Just from a glance, it seems your issue is that you can access headers which don't have `-` in the name but not ones that DO have `-`. This may be due to how you are accessing it. Could you try replacing :
Orig_Sender = results.headers.x-env-sender with
Orig_Sender = results.headers["x-env-sender"]and let me know if you see anything different ?
------------------------------
Ryan Gordon
Security Software Engineer
IBM
------------------------------