cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
276
Views
0
Helpful
1
Replies

Message Filter - ' VS "

Jessi Patterson
Level 1
Level 1

When is the appropriate times to use ' or " when creating message filters?

Is ' used when you are adding in your own string of characters and " used for a system defined item like in the following example? 

 

header ("From") == 'example.com'

1 Reply 1

A note from this page : https://www.cisco.com/c/en/us/td/docs/security/esa/esa15-0/user_guide/b_ESA_Admin_Guide_15-0/b_ESA_Admin_Guide_12_1_chapter_01000.html

You must enclose the values in filters in either single or double quotation marks. Single or double quotation marks must be equally paired on each side of the value; for example, the expressions notify('customercare@example.com') and notify(customercare@example.com) are both legal, but the expression notify("customercare@example.com') causes a syntax error.


Basically, it doesn't matter, as long as they are paired... with the caveat that if you need to catch one in your search, you should use the other to wrap it...
Or use regex...

________________________________

This email is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law. If the reader of this email is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited.
If you have received this communication in error, please immediately notify us by telephone and return the original message to us at the listed email address.
Thank You.