<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=AddTicketHistoryToMail</id>
	<title>AddTicketHistoryToMail - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=AddTicketHistoryToMail"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=AddTicketHistoryToMail&amp;action=history"/>
	<updated>2026-08-22T07:10:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=AddTicketHistoryToMail&amp;diff=26499&amp;oldid=prev</id>
		<title>Aaverkios: Changed HTML parsing to HTML::Strip module (tested/working on 4.4.1)</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=AddTicketHistoryToMail&amp;diff=26499&amp;oldid=prev"/>
		<updated>2017-04-28T00:31:57Z</updated>

		<summary type="html">&lt;p&gt;Changed HTML parsing to HTML::Strip module (tested/working on 4.4.1)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:31, 27 April 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Code cleanups: [[RuslanZakirov]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Code cleanups: [[RuslanZakirov]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Require&lt;/del&gt;: Text::Wrapper perl &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;module&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;HTML parsing: aaverkios&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Requirements&lt;/ins&gt;: Text::Wrapper &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and HTML::Strip &lt;/ins&gt;perl &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;modules&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre style=&amp;quot;white-space: pre;&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre style=&amp;quot;white-space: pre;&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l58&quot;&gt;Line 58:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 60:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       my $content = $message-&amp;gt;Content;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       my $content = $message-&amp;gt;Content;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $content =&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;~ s/&lt;/del&gt;&amp;gt;(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;([^ &amp;gt;]|\n)*&lt;/del&gt;)&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt;//g&lt;/del&gt;; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;# &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;strip &lt;/del&gt;HTML &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tags from text/html&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      #HTML parsing start&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      #Initialize the installed module&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      use base &quot;HTML::Strip&quot;;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      #Create the strip object with the default constructor&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      my $p = HTML::Strip-&amp;gt;new();&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      # strip the content of HTML&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $content = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$p-&lt;/ins&gt;&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;parse&lt;/ins&gt;(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$content&lt;/ins&gt;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;#HTML &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;parsing end&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       next unless $content;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       next unless $content;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key bestpractical_mediawiki1459887241:diff:1.41:old-26482:rev-26499:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Aaverkios</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=AddTicketHistoryToMail&amp;diff=26482&amp;oldid=prev</id>
		<title>Tharn: undo html entity conversion &amp; wrap in &lt;pre&gt;</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=AddTicketHistoryToMail&amp;diff=26482&amp;oldid=prev"/>
		<updated>2017-01-20T18:11:17Z</updated>

		<summary type="html">&lt;p&gt;undo html entity conversion &amp;amp; wrap in &amp;lt;pre&amp;gt;&lt;/p&gt;
&lt;a href=&quot;https://rt-wiki.bestpractical.com/index.php?title=AddTicketHistoryToMail&amp;amp;diff=26482&amp;amp;oldid=5340&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Tharn</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=AddTicketHistoryToMail&amp;diff=5340&amp;oldid=prev</id>
		<title>Admin at 14:39, 14 June 2016</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=AddTicketHistoryToMail&amp;diff=5340&amp;oldid=prev"/>
		<updated>2016-06-14T14:39:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://rt-wiki.bestpractical.com/index.php?title=AddTicketHistoryToMail&amp;amp;diff=5340&amp;amp;oldid=75&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=AddTicketHistoryToMail&amp;diff=75&amp;oldid=prev</id>
		<title>Admin: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=AddTicketHistoryToMail&amp;diff=75&amp;oldid=prev"/>
		<updated>2016-04-06T20:03:12Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Original author: Michael Markstaller - IFCO&lt;br /&gt;
&lt;br /&gt;
Code cleanups: [[RuslanZakirov]]&lt;br /&gt;
&lt;br /&gt;
Require: Text::Wrapper perl module&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;Subject: Resolved: {$Ticket-&amp;amp;gt;Subject}&lt;br /&gt;
 &lt;br /&gt;
 Dear customer,&lt;br /&gt;
 &lt;br /&gt;
 your issue regarding&lt;br /&gt;
 &lt;br /&gt;
        &amp;quot;{$Ticket-&amp;amp;gt;Subject()}&amp;quot;,&lt;br /&gt;
 &lt;br /&gt;
 has been resolved in our ticket system. See below for history of this ticket.&lt;br /&gt;
 &lt;br /&gt;
 If you have any further questions or concerns, please reply to this&lt;br /&gt;
 message to reopen the ticket.&lt;br /&gt;
 &lt;br /&gt;
 regards&lt;br /&gt;
 &lt;br /&gt;
 {$Ticket-&amp;amp;gt;OwnerObj-&amp;amp;gt;RealName || $Ticket-&amp;amp;gt;OwnerObj-&amp;amp;gt;Name}&lt;br /&gt;
 your-company-fooprint&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 ----------------------------------------------------------------&lt;br /&gt;
   Your initial request was&lt;br /&gt;
 ----------------------------------------------------------------&lt;br /&gt;
 &lt;br /&gt;
 {$Ticket-&amp;amp;gt;Transactions-&amp;amp;gt;First-&amp;amp;gt;Content()}&lt;br /&gt;
 &lt;br /&gt;
 ----------------------------------------------------------------&lt;br /&gt;
   Complete Ticket History&lt;br /&gt;
 ----------------------------------------------------------------&lt;br /&gt;
 &lt;br /&gt;
 {&lt;br /&gt;
  my $resolved_message = &amp;#039;&amp;#039;;&lt;br /&gt;
  my $last_content = &amp;#039;&amp;#039;;&lt;br /&gt;
 &lt;br /&gt;
  my $transactions = $Ticket-&amp;amp;gt;Transactions;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
  $transactions-&amp;amp;gt;Limit( FIELD =&amp;amp;gt; &amp;#039;Type&amp;#039;, VALUE =&amp;amp;gt; &amp;#039;Correspond&amp;#039; );&lt;br /&gt;
  #If for some reason you want to expose internal comments to end users,&lt;br /&gt;
  #probably a bad idea, comment out the previous line &amp;amp;amp; uncomment these:&lt;br /&gt;
  #$transactions-&amp;amp;gt;Limit( FIELD =&amp;amp;gt; &amp;#039;Type&amp;#039;, VALUE =&amp;amp;gt; &amp;#039;Correspond&amp;#039;, ENTRYAGGREGATOR =&amp;amp;gt; &amp;#039;OR&amp;#039;, OPERATOR =&amp;amp;gt; &amp;#039;=&amp;#039; );&lt;br /&gt;
  #$transactions-&amp;amp;gt;Limit( FIELD =&amp;amp;gt; &amp;#039;Type&amp;#039;, VALUE =&amp;amp;gt; &amp;#039;Comment&amp;#039;, ENTRYAGGREGATOR =&amp;amp;gt; &amp;#039;OR&amp;#039;, OPERATOR =&amp;amp;gt; &amp;#039;=&amp;#039; );&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
  while (my $transaction = $transactions-&amp;amp;gt;Next) {&lt;br /&gt;
    my $attachments = $transaction-&amp;amp;gt;Attachments;&lt;br /&gt;
 &lt;br /&gt;
    while (my $message = $attachments-&amp;amp;gt;Next) {&lt;br /&gt;
      next unless $message-&amp;amp;gt;ContentType =~&lt;br /&gt;
               m!^(text/html|text/plain|message|text$)!i;&lt;br /&gt;
 &lt;br /&gt;
      my $content = $message-&amp;amp;gt;Content;&lt;br /&gt;
      $content =~ s/&amp;amp;lt;(([^ &amp;amp;gt;]|\n)*)&amp;amp;gt;//g;  # strip HTML tags from text/html&lt;br /&gt;
      next unless $content;&lt;br /&gt;
 &lt;br /&gt;
      next if $last_content eq $content;&lt;br /&gt;
      $last_content = $content;&lt;br /&gt;
 &lt;br /&gt;
      my $subject = ($message-&amp;amp;gt;Subject || $Ticket-&amp;amp;gt;Subject);&lt;br /&gt;
 &lt;br /&gt;
      my $wrapper = Text::Wrapper-&amp;amp;gt;new(columns=&amp;amp;gt;70);&lt;br /&gt;
      $content = $wrapper-&amp;amp;gt;wrap($content);&lt;br /&gt;
 &lt;br /&gt;
      $resolved_message .= &amp;quot;Subject: &amp;quot;;&lt;br /&gt;
      $resolved_message .= $subject;&lt;br /&gt;
      $resolved_message .= &amp;quot;\n&amp;quot;;&lt;br /&gt;
      $resolved_message .= &amp;quot;From: &amp;quot;;&lt;br /&gt;
      $resolved_message .= $message-&amp;amp;gt;CreatorObj-&amp;amp;gt;RealName || $message-&amp;amp;gt;CreatorObj-&amp;amp;gt;EmailAddress;&lt;br /&gt;
      $resolved_message .= &amp;quot;\n&amp;quot;;&lt;br /&gt;
      $resolved_message .= &amp;quot;Time: &amp;quot;;&lt;br /&gt;
      $resolved_message .= $message-&amp;amp;gt;CreatedObj-&amp;amp;gt;AsString;&lt;br /&gt;
      $resolved_message .= &amp;quot;\n&amp;quot;;&lt;br /&gt;
      $resolved_message .= &amp;quot;\n&amp;quot;;&lt;br /&gt;
      $resolved_message .= &amp;quot;$content\n&amp;quot;;&lt;br /&gt;
      $resolved_message .= &amp;quot;------------------------------------------------\n&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  $resolved_message;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 -------------------------------------------------------------------------&lt;br /&gt;
    Common Information&lt;br /&gt;
 -------------------------------------------------------------------------&lt;br /&gt;
 &lt;br /&gt;
 There is no need to reply to this message unless you want to RE-OPEN your&lt;br /&gt;
 ticket with ID [{$rtname} #{$Ticket-&amp;amp;gt;id}].&lt;br /&gt;
 &lt;br /&gt;
 If you want to simply add a COMMENT to this ticket without re-opening the ticket, click below:&lt;br /&gt;
 mailto:rt-comment@yourdomain.com?subject=[{$rtname}%20#{$Ticket-&amp;amp;gt;id()}]&amp;amp;amp;body=%20&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Please note:&lt;br /&gt;
 - ALWAYS include the string [{$rtname} #{$Ticket-&amp;amp;gt;id}] in the subject line of all future correspondence about this issue.&lt;br /&gt;
 - Do NOT attach or include the content of previous emails already sent to you by rt.&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>