Ensuring that Inbound Email Actions always work regardless of text case sensitivityDescription<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; text-decoration: underline; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } --> Ensuring that Inbound Email actions always work, regardless of text case sensitivity Overview Sometimes an Inbound Email action will not behave as expected, because the string comparisons it uses are case-sensitive, and the incoming email's text does not match upper- and lower-case characters exactly. There are two places where case-sensitive string comparisons are important: For early product families, Inbound Email Configuration properties that determine when an email should be treated as a Reply or a Forward.Custom scripts that you write, which contain case-sensitive string comparisons. Procedure for Ensuring Inbound Email Configuration Matches Upper- and Lower-case This procedure does not apply to: Calgary Patch 6 and laterDublin Patch 2 and later In later releases, the reply and forward prefixes perform case-insensitive comparisons. To ensure that the correct inbound action is triggered for emails classified as type Reply or Forward: Log in to your instance. Navigate to System Properties > Email. In the Inbound Mail Configuration section, verify that the Identify mail as a reply by these subject prefixes property contains a complete list of prefixes that identify that an email is a reply in your company's mail systems. Separate each prefix with a comma. See wiki article Inbound Mail Configuration for more information. Define multiple versions of the prefix, including mixed-case versions such as FWD:, Fwd:, etc. Click Save.Repeat the procedure for the Identify mail as a forward by these subject prefixes property. Procedure for Ensuring Your Custom Scripts Work with Case-Insensitive Text If your Inbound Email action scripts contain Javascript patterns similar to the following, then it is best practice to review your code for possible case-sensitivity issues. An example of case-sensitive Javascript looks like this: Bad practice, because indexOf() requires perfect case-sensitive comparison: if (yourVariable.indexOf("Incident Opened") != -1) { // Do something important here, based on text "Incident Opened" // The problem is that "Incident Opened" will not match} Best practice: if (yourVariable.toLowerCase().indexOf("incident opened") != -1) { // This will match "Incident Opened", "incident Opened", "Incident opened", etc.}