<div dir="ltr">Any chance you could point me in the right direction as to how to patch Email.pm to do the routing based on recipient email address? <div><br></div><div>It would be impossible to manually block individual users from each queue that they are not suppose to email to, especially when we have customer support type queue.</div><div><br></div><div>Thanks,</div><div><br></div><div>Kevin</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>> 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>> 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><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" target="_blank">+33 (0) 1 43 35 00 37</a> - Fax: <a href="tel:%2B33%20%280%29%201%2043%2035%2000%2076" value="+33143350076" target="_blank">+33 (0) 1 43 35 00 76</a><br>
mailto:<a href="mailto:elacour@easter-eggs.com" target="_blank">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></div></div>