<div dir="ltr">This may not be the best solution, but it would be a solution.<div><br></div><div>If you had each queue in it's own instance, or at least grouping the queues into their own instances of RT in which each queue in RTinstance1 would never have an email forwarded to any other queue in RTinstance1...</div><div><br></div><div>Again, probably isn't what you'd like to do, but it is possible to prevent the problem you are having by doing this.</div><div>Mike.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 15, 2014 at 4:23 AM, Emmanuel Lacour <span dir="ltr"><<a href="mailto:elacour@easter-eggs.com" target="_blank">elacour@easter-eggs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 09/10/2014 21:41, Root Kev a écrit :<br>
<span class="">> Hello,<br>
><br>
> We have setup aliases for sendmail that route incoming emails to the<br>
> correct queue:<br>
> Example:<br>
><br>
> #RT Mailgate user for "it"<br>
> it: "|/opt/rt4/bin/rt-mailgate --queue 'it' --action correspond --url<br>
> <a href="http://tracker.company.net/rt" target="_blank">http://tracker.company.net/rt</a>"<br>
> it-comment: "|/opt/rt4/bin/rt-mailgate --queue 'it' --action comment<br>
> --url <a href="http://tracker.company.net/rt/" target="_blank">http://tracker.company.net/rt/</a>"<br>
><br>
> #RT Mailgate user for "production"<br>
> production: "|/opt/rt4/bin/rt-mailgate --queue 'production' --action<br>
> correspond --url <a href="http://tracker.company.net/rt" target="_blank">http://tracker.company.net/rt</a>""<br>
> production-comment: "|/opt/rt4/bin/rt-mailgate --queue production<br>
> --action comment --url <a href="http://tracker.company.net/rt/" target="_blank">http://tracker.company.net/rt/</a>"<br>
><br>
><br>
> We have started having an issue when an internal user forwards an email<br>
</span>> with [ <a href="http://company.com" target="_blank">company.com</a> <<a href="http://company.com" target="_blank">http://company.com</a>> #1234] that they have been CCed<br>
<span class="">> on, to a production support queue by changing the To address to the<br>
> email address for that queue, but RT is seeing the original ticket<br>
> number in the subject and is merging the email with the comment to the<br>
> original ticket.<br>
><br>
> This has caused comments meant for internal users, ie: "Is this a bug?"<br>
> to be sent to a customer unintentionally.<br>
><br>
> Is there any way to force RT to respect the incoming email/queue from<br>
> rt-mailgate over merging by the ticket numbers (when this type of thing<br>
> occurs)?<br>
><br>
<br>
<br>
</span>no, you have to patch RT (lib/RT/Interfaces/Email.pm:sub Gateway) or<br>
disallow the user to send a mail to a queue where the ticket doesn't<br>
belong to, by writing a MailPlugin<br>
(<a href="http://www.bestpractical.com/docs/rt/4.2/rt-mailgate.html#WRITING-PLUGINS" target="_blank">http://www.bestpractical.com/docs/rt/4.2/rt-mailgate.html#WRITING-PLUGINS</a>).<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Easter-eggs                              Spécialiste GNU/Linux<br>
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité<br>
Phone: <a href="tel:%2B33%20%280%29%201%2043%2035%2000%2037" value="+33143350037">+33 (0) 1 43 35 00 37</a>    -   Fax: <a href="tel:%2B33%20%280%29%201%2043%2035%2000%2076" value="+33143350076">+33 (0) 1 43 35 00 76</a><br>
mailto:<a href="mailto:elacour@easter-eggs.com">elacour@easter-eggs.com</a>  -   <a href="http://www.easter-eggs.com" target="_blank">http://www.easter-eggs.com</a><br>
--<br>
RT Training November 4 & 5 Los Angeles<br>
<a href="http://bestpractical.com/training" target="_blank">http://bestpractical.com/training</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mike Johnson<br>Datatel Programmer/Analyst<br>Northern Ontario School of Medicine<br>955 Oliver Road<br>Thunder Bay, ON   P7B 5E1<br>Phone: (807) 766-7331<br>Email: <a href="mailto:mike.johnson@nosm.ca">mike.johnson@nosm.ca</a>
</div>