Fields available from header when creating global event rule for email

The following things can be grabbed via the drop down menu when configuring a rule (either conditions or create variable)

headers.from.0.address
headers.subject

What other fields are available in headers.[something]

For exmaple, does headers.date give you the timestamp of the email?

Thanks!

Hi David,

Thanks for reaching out!

When you write a global rule, it’ll tell you about the fields that are always available for any email.

On top of that, any header of the email will be available under headers, so that list depends on the email itself. So if the email header is foo, it’ll be under headers.foo. To answer your specific question, headers.date should work.

Please let me know if this is helpful or you have additional questions.

Regards,

Alex Engelmann
Technical Support Specialist
PagerDuty.com

1 Like

For posterity, here is a list of all fields names for what can show up in a email header:

https://www.iana.org/assignments/message-headers/message-headers.xhtml (sort by protocol, and look for “mail”)