<?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=OnEmailCorrespond</id>
	<title>OnEmailCorrespond - 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=OnEmailCorrespond"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=OnEmailCorrespond&amp;action=history"/>
	<updated>2026-08-23T15:48:07Z</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=OnEmailCorrespond&amp;diff=2411&amp;oldid=prev</id>
		<title>Admin: 4 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=OnEmailCorrespond&amp;diff=2411&amp;oldid=prev"/>
		<updated>2016-04-06T20:15:49Z</updated>

		<summary type="html">&lt;p&gt;4 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page tries to create the &amp;#039;&amp;#039;dual/opposite/complement&amp;#039;&amp;#039; of [[OnWebCorrespond]] (should match every correspondence from email), with respect to Replies.&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 an email reply. &amp;#039;&amp;#039;There are cases when you may need to have a different behaviour for replies coming from emails and replies coming from Web&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#### BEWARE not tested yet!&lt;br /&gt;
  &lt;br /&gt;
    my $trans = $self-&amp;amp;gt;TransactionObj;&lt;br /&gt;
  &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 0 unless $msgattr; # no message attachment - assume web UI&lt;br /&gt;
    &lt;br /&gt;
    return 1 if $msgattr-&amp;amp;gt;GetHeader(&amp;#039;Received&amp;#039;); # email message&lt;br /&gt;
    &lt;br /&gt;
    return 0;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Riccardo Carlesso 1/Apr/11&lt;br /&gt;
&lt;br /&gt;
See also [[AnyTransactionSource]].&lt;br /&gt;
[[Category:RT Condition]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>