<?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=CurrentUserEmail</id>
	<title>CurrentUserEmail - 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=CurrentUserEmail"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=CurrentUserEmail&amp;action=history"/>
	<updated>2026-08-22T07:42:35Z</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=CurrentUserEmail&amp;diff=674&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=CurrentUserEmail&amp;diff=674&amp;oldid=prev"/>
		<updated>2016-04-06T20:03:35Z</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; &amp;lt;nowiki&amp;gt;Sort of a corollary to __CurrentUser__, which returns the Current user id in searches,&lt;br /&gt;
 __CurrentUserEmail__ allows you to search against the logged in user&amp;#039;s email address.&lt;br /&gt;
 (Thus allowing the return of &amp;quot;MyRequestedTickets&amp;quot; from ver2 of RT by matching&lt;br /&gt;
 __CurrentUserEmail__ against Requestor in a search)&lt;br /&gt;
 &lt;br /&gt;
 1 - cd $rt_home&lt;br /&gt;
 2 - cp lib/RT/Tickets_Overlay_SQL.pm local/lib/RT/Tickets_Overlay_SQL.pm&lt;br /&gt;
 3 - apply the below diff (which really only adds the three lines.&lt;br /&gt;
 &lt;br /&gt;
 $ diff -c lib/RT/Tickets_Overlay_SQL.pm local/lib/RT/Tickets_Overlay_SQL.pm&lt;br /&gt;
 *** lib/RT/Tickets_Overlay_SQL.pm       Wed Jul 30 16:08:43 2008&lt;br /&gt;
 --- local/lib/RT/Tickets_Overlay_SQL.pm Wed Jul 30 17:25:34 2008&lt;br /&gt;
 ***************&lt;br /&gt;
 *** 294,299 ****&lt;br /&gt;
 --- 294,302 ----&lt;br /&gt;
         # replace __CurrentUser__ with id&lt;br /&gt;
         $val = $self-&amp;amp;gt;CurrentUser-&amp;amp;gt;id if $val eq &amp;#039;__CurrentUser__&amp;#039;;&lt;br /&gt;
 &lt;br /&gt;
 +         # replace __CurrentUserEmail__ with email address&lt;br /&gt;
 +       $val = $self-&amp;amp;gt;CurrentUser-&amp;amp;gt;EmailAddress if $val eq &amp;#039;__CurrentUserEmail__&amp;#039;;&lt;br /&gt;
 +&lt;br /&gt;
 &lt;br /&gt;
      my $subkey = &amp;#039;&amp;#039;;&lt;br /&gt;
      if ($key =~ /^(.+?)\.(.+)$/) {&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>