<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
Dear list,<br>
<br>
I needed to make a message filter for my incoming mail so that it gets sorted
into different queues. I thought I could use the "keywords" feature but it
turns out that it is useful for sorting mail AFTER it is recieved and not
BEFORE. I did the following hack in the file "/opt/rt2/bin/rt-mailgate" and
inserted the following  code:<br>
 <br>
 <small>### 4/9/03 incoming mail to support queue is filtered ###<br>
 if ($Queue eq "support") {<br>
   if ($Subject =~ /Request Type 1/) {<br>
     $Queue = "fkey1";<br>
   } elsif ($Subject =~ /Request Type 2/) {<br>
     $Queue = "fkey2";<br>
   } elsif ($Subject =~ /Request Type 3/) {<br>
     $Queue = "fkey3";<br>
   }<br>
 }<br>
 ### end of hack ###<br>
 </small><br>
The hack is simple enough to maintain but I hope a web interface and database
support of a feature that does something like this gets inserted with the
new release. Thanks.<br>
<br>
Rene L. Pongco Jr.<br>
Sr. Soft. Eng.<br>
Infophil.COM<br>
<pre class="moz-signature" cols="$mailwrapcol">-- 
The Unwritten Rule » When no appropriate Rule applies, make one up!
</pre>
</body>
</html>