Hello,

I'm trying to determine the value of the mail header "test". I've hooked my function on message_load and tried using $args['object']->get_part_content(), which works to get the content of the e-mail. When I loop through it I find the body but nothing more. I've found no documentation about what I'm trying to do and $args['object']->get_header() didn't work.

Could somebody please show me the syntax to read the headers from message_load? I would really appreciate any help with this, I've been reading other plugin sources that showed up in Google when I searched for message_load hooked plugin functions but haven't found anything that made sense to me. Perhaps I am just a bad Googler and if that's the case I apologize.

Thanks for reading,
John