1 Reply Latest reply on May 8, 2014 10:45 AM by blankenshipr

    Stripping out part of email content

    tspwayne

      Is there a way of stripping out part of the email that comes in so it does go in the ticket, such as a footer of the email or a generated script from a postmaster. I think the wording is the same, but not sure how to delete it out using action rules if possible

        • Re: Stripping out part of email content
          blankenshipr

          Please see the "E-Mail Content Regular-Expression Filter" option under Setup > Email > Options.

           

          E-Mail Content Regular-Expression Filter
          If provided, the part of the e-mail content that matches this regular expression will be stripped out.

           

          For example, the following expression will remove a RFC3676-style signature from the bottom of an e-mail message (i.e. a signature beginning with a separator line containing two hyphens and a space ("-- ")):

           

             (?s)[\r\n]{1,2}-- {1,2}[\r\n]{1,2}.*$

           

          (?s) means that the filter can apply to multiple lines at once, [\r\n]{1,2} means one or two occurrences of a newline character, .* means zero or more occurrences of any character, and $ means the end of the text.

           

          The above will filter out a signature of the following format:

           

          --
          Jane Doe
          jane@mycompany.com
          (555) 555-5555