<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p>On 21-11-2018 00:36, Shawn Iverson via MailScanner wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">I will test this on the current mailscanner and see if I can reproduce it.</div>
<br />
<div class="gmail_quote">
<div dir="ltr">On Wed, Nov 14, 2018 at 12:23 PM Richard Mealing <<a href="mailto:rich@richsphere.co.uk">rich@richsphere.co.uk</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin: 0  0  0  .8ex; border-left: 1px  #ccc  solid; padding-left: 1ex;"><span style="text-decoration: underline;"></span>
<div style="font-family: Verdana,Geneva,sans-serif;">
<p>Hi list,</p>
<p> </p>
<p>I have a requirement to set external email tag in the subject line for all scanned external emails coming into a certain domain. I have set this up and everything seems to work fine.</p>
<p>When a user replies the client adds a 're' tag to the subject and the further external reply (now the 3rd email) mailscanner cannot detect it's original tag and so adds another EXTERNAL EMAIL to the subject line. </p>
<p> </p>
<p>So the email subject looks like this - EXTERNAL EMAIL: RE: EXTERNAL EMAIL: TEST SUBJECT</p>
<p> </p>
<p>I have added the tag at the end of the subject line and that fixes the problem, however the user would like me to try and fix this behaviour so they can add the tag at the start of the subject line. </p>
<p> </p>
<p>I am running a fairly old 4.85.2 version of mailscanner. I am just wondering if anyone has any thoughts on this? Can mailscanner search for the tag in the subject line and then not add another tag if it finds the tag? </p>
<p> </p>
<p>Thank you.</p>
<p>Rich</p>
<div>-- <br />
<pre> </pre>
<p> </p>
<pre> </pre>
</div>
</div>
<br /><br /> -- <br /> MailScanner mailing list<br /><a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br /><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br /><br /></blockquote>
</div>
<br clear="all" />
<div> </div>
-- <br />
<div class="gmail_signature" dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Shawn Iverson, CETL
<div>Director of Technology</div>
<div>Rush County Schools</div>
<div>765-932-3901 option 7</div>
<div><a href="mailto:iversons@rushville.k12.in.us">iversons@rushville.k12.in.us</a></div>
<div> </div>
<div><img style="font-size: 12.8px;" src="cid:83c1c2ba59bd7a92a1e822f6a98eef47@richsphere.co.uk" alt="" width="96" height="96" /><img src="cid:83c1c2ba59bd7a92a1e822f6a98eef47@richsphere.co.uk" alt="" width="89" height="96" /></div>
<div><img style="font-size: 12.8px;" src="cid:83c1c2ba59bd7a92a1e822f6a98eef47@richsphere.co.uk" alt="" /></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<pre> </pre>
</blockquote>
<p> </p>
<p>Hi Shawn,</p>
<p>I believe this has been discussed before. http://lists.mailscanner.info/pipermail/mailscanner/2003-December/024227.html</p>
<p>Jules rightly says the email client adds the RE tag to the subject so I can't see a way around this behaviour. Now I have this set in a ruleset I can't see how mailscanner could search for the domain in the rules file, then search every email for that domains subject header for the tag I set inside the rules file. I personally think it would cause a lot of extra load, unless someone could figure out a better way? I can't. </p>
<p>I have this - </p>
<p> </p>
<p>Scanned Modify Subject = %rules-dir%/modify.scanned.subject.rules</p>
<p> To:     default no</p>
<p> To:    richsphere.co.uk        yes</p>
<p>And then this - </p>
<p>Scanned Subject Text = %rules-dir%/scanned.subject.text.rules</p>
<p> To: default {Scanned} # This would never be used unless the modify.scanned.subject.rules 'default' line is set to 'yes'</p>
<p> To: richsphere.co.uk    [EXTERNAL EMAIL]</p>
<p>If you keep going it just builds up the subject line as so - </p>
<p> </p>
<p>Subject: <span> </span>[EXTERNAL EMAIL : ] Re: [EXTERNAL EMAIL : ] Re: [EXTERNAL EMAIL : ] Re: Test</p>
<p> </p>
<p>Thanks,</p>
<p>Rich</p>
<div>-- <br />
<pre> </pre>
<p> </p>
<pre> </pre>
</div>
</body></html>