<?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=OnWebCorrespond</id>
	<title>OnWebCorrespond - 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=OnWebCorrespond"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=OnWebCorrespond&amp;action=history"/>
	<updated>2026-08-22T05:39:03Z</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=OnWebCorrespond&amp;diff=2452&amp;oldid=prev</id>
		<title>Admin: 3 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=OnWebCorrespond&amp;diff=2452&amp;oldid=prev"/>
		<updated>2016-04-06T20:15:50Z</updated>

		<summary type="html">&lt;p&gt;3 revisions imported&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 16:15, 6 April 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bestpractical_mediawiki1459887241:diff:1.41:old-2451:rev-2452 --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=OnWebCorrespond&amp;diff=2451&amp;oldid=prev</id>
		<title>193.1.228.252: Adding categories</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=OnWebCorrespond&amp;diff=2451&amp;oldid=prev"/>
		<updated>2011-04-01T16:07:33Z</updated>

		<summary type="html">&lt;p&gt;Adding categories&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Question - in an OnCorrespond scrip, how can you determine if the reply is from an incoming email message or from the web interface?&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s a custom scrip condition that checks for a &amp;quot;Received&amp;quot; header in the message - if there is one, we assume we&amp;#039;re dealing with email. If not, it&amp;#039;s a reply entered in the web interface.&lt;br /&gt;
&lt;br /&gt;
This code will cause the scrip to proceed if we&amp;#039;re dealing with a web interface reply.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;my $trans = $self-&amp;amp;gt;TransactionObj;&lt;br /&gt;
 &lt;br /&gt;
 # OnCorrespond:&lt;br /&gt;
 return 0 unless $trans-&amp;amp;gt;Type eq &amp;quot;Correspond&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
 # Get the message attachment&lt;br /&gt;
 my $msgattr = $trans-&amp;amp;gt;Message-&amp;amp;gt;First;&lt;br /&gt;
 &lt;br /&gt;
 return 1 unless $msgattr; # no message attachment - assume web UI&lt;br /&gt;
 &lt;br /&gt;
 return 0 if $msgattr-&amp;amp;gt;GetHeader(&amp;#039;Received&amp;#039;); # email message&lt;br /&gt;
 &lt;br /&gt;
 return 1;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Steve Turner 5/19/05&lt;br /&gt;
&lt;br /&gt;
See also [[AnyTransactionSource]].&lt;br /&gt;
[[Category:RT Condition]]&lt;/div&gt;</summary>
		<author><name>193.1.228.252</name></author>
	</entry>
</feed>