Trim rules
When a customer replies to a notification email, the reply usually contains the whole earlier conversation below it. Trim rules find where the new text ends, so only the new text becomes the ticket message. The cut part stays available behind a "show quoted text" link.
Built-in rules
JoomHelpdesk ships rules for common mail programs, HTML mail and Chinese mail clients. They are in the files core.xml, html.xml and chinese.xml in components/com_joomhelpdesk/plugins/emailcheck/trim/, and are copied into the Trim Rules list on install.
In 6.5.37 the files are always used too. Unpublishing or deleting a built-in rule in the list does not stop it.
Add a rule
Go to Components > JoomHelpDesk > Settings > Trim Rules and click New.
| Field | What it does |
|---|---|
| Title | A name. |
| Match type | Regular expression or Line starts with. |
| Pattern | The text that marks the start of the quoted part, for example -----Original Message----- or a regular expression for "On ... wrote:". |
| Applies to | Plain text emails, HTML emails or Both. |
| Nearby conditions | Extra patterns that must match a few lines before or after, with Window (lines), Lines before and Lines after. Use them to avoid cutting a normal sentence. |
| Status |
Test
Test all rules opens a box where you paste the plain text of a real reply. Run Test shows which line the cut starts at, what stays as the message and what is hidden.