cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
2264
Views
0
Helpful
3
Replies

Notification templates variables

lsmarchig
Level 1
Level 1

Hi,

 

I have a notification template where i am logging certain fields of the message headers. I have no issues with the default ones like $from, $subject. But am trying to pull fields that don't have a defined variable using the $header[‘string ’] format. I have tried a few different variations and am having no luck.  Some examples that i have tried so far. I was also trying to extract other headers without a defined variable besides this one and no luck with those either.

SPF Record - "$Header['x-record-type']"

SPF Record - $Header['x-record-type']

SPF Record - $Header['x-record-type]

SPF Record - $Header'x-record-type'

 

Any help would be appreciated. thanks

3 Replies 3

Greg Muszynski
Level 1
Level 1

I think the syntax you have is correct: 

 

$Header['string ']

 

Did you try looking through this Chapter

 

Using Message Filters to Enforce Email Policies

 

https://www.cisco.com/c/en/us/td/docs/security/esa/esa11-1/user_guide/b_ESA_Admin_Guide_11_1/b_ESA_Admin_Guide_chapter_01000.pdf

 

 

Thanks i will reread that section again. Sorry about the late reply, i thought i had checked off the option to notify me when someone replied to my post.

Prab
Level 1
Level 1

I have used the variables it in the Notification templates & it worked. The correct syntax is:

$Header['Name of the header']

 

Here are few examples:

To retrieve the Reply-To header:

$Header['Reply-To']

 

To retrieve the Authentication-Results header which contains the details of the SPF, DKIM verification results:

$Header['Authentication-Results']

 

To retrieve the MIME version header:

$Header['MIME-Version']

 

To retrieve the Content-Type header:

$Header['Content-Type']

 

You could check the message properties in the user mail client (Outlook, Thunderbird) to find other relevant headers.

Hope it helps!

Prab