<html><head></head><body>I found the issue is Everyone ( or the user sending the email) needs SeeQueue on the queue supplied by rt-mailgate so it can be loaded and $queue->TicketCustomFields produces a Custom Fields objects<br>
<br>
Another thread mentions passing a  queue: command in order to set cfs. But that didn't work for me. Maybe if the user has rights to the  supplied queue but no right to.change queues the same result might be achieved.<br>
<br>
W<br><br><div class="gmail_quote">On December 10, 2016 8:10:14 PM EAT, Woody - Wild Thing Safaris <woody@wildthingsafaris.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hi All,<br /><br />I am trying to create a ticket by email with various fields set.<br /><br />I have set headers<br /><br />X-RT-Command: CustomField{PNR}: 12345678<br /><br />and the lodges show<br /><br />Running CommandByMail as a@b.cm <br />(/var/www/xxx/local/plugins/RT-Extension-CommandByMail/lib/RT/Extension/<a href="CommandByMail.pm:309">CommandByMail.pm:309</a>)<br />[2482] [Sat Dec 10 17:05:33 2016] [debug]: Found pseudoheader: <br />CustomField{PNR} => 12345678<br /><br />but it does not set the field, and no error shown.<br /><br />I am sure it's a rights issue, but i've set "Everyone" SeeCustomField <br />and ModifyCustomField at CF level and Queue level, and even global <br />level, but it does not get set<br /><br />any hints?<br /><br />w.<br /><br /></pre></blockquote></div></body></html>