<html>
<body>
At 18:12 02/10/2003, you wrote:<br>
<blockquote type=cite class=cite cite><font face="arial" size=2>I need to
match email's by their subjects. Here is my a brief description of my
problem:</font><br>
&nbsp;<br>
<font face="arial" size=2>Municipality--&gt;Exchange server</font><br>
&nbsp;<br>
<font face="arial" size=2>Municipal ISP (owned by municipality) --&gt;
Linux mailserver</font><br>
&nbsp;<br>
<font face="arial" size=2>For ease, some of the mail destined for the
municipality is sent directly to the isp mailserver and forward via
alias. I need to match a particular email address, then I need to further
match a subject. If the subject meets my match criteria, I need that
message forwarded to another email address which actually goes to a
pager. We are trying to get faster notification of emergency messages
from a particular sender. Is this possible? If so please post a short
example.</font></blockquote><br>
You can do this with a Custom Function attached to &quot;Non Spam
Actions&quot; that checks the subject and the destination address. If it
matches then it returns &quot;deliver forward yourpager@domain.com&quot;.
If it doesn't match then it returns &quot;deliver&quot;.<br><br>
sub PagerAction {<br>
&nbsp; my($message) = @_;<br><br>
&nbsp; return &quot;deliver&quot; unless $message;<br><br>
&nbsp; if ($message-&gt;{to}[0] eq 'targetaddress@you.com' &amp;&amp;
$message-&gt;{subject} =~ /your special subject/i) {<br>
&nbsp;&nbsp;&nbsp; return 'deliver forward yourpager@domain.com';<br>
&nbsp; } else {<br>
&nbsp;&nbsp;&nbsp; return 'deliver';<br>
&nbsp; }<br>
}<br><br>
I haven't tried that, but it should work. Be warned it will only look at
the 1st recipient of the message. You will probably want to turn that
into a loop to check all the recipients of the message to see if any of
them match.</body>
<br>
<div>-- </div>
<div>Julian Field</div>
<div><a href="http://www.mailscanner.info/" EUDORA=AUTOURL>www.MailScanner.info</a></div>
<div>Professional Support Services at
<a href="http://www.mailscanner.biz/" EUDORA=AUTOURL>www.MailScanner.biz</a></div>
<div>MailScanner thanks transtec Computers for their support</div>
PGP footprint: EE81 D763 3DB0 0BFD E1DC&nbsp; 7222 11F6 5947 1415 B654
</html>