[rt-users] Spaces not allowed in Custom Fields when generating tickets via e-mail

Jean-Sebastien Morisset jsmoriss at mvlan.net
Wed Jun 18 18:11:57 EDT 2008


On Wed, Jun 18, 2008 at 02:18:43PM -0700, Kenneth Crocker wrote:
> Ruslan,
> 
> 
> 	I was following this thread because I was having trouble creating a 
> ticket via email using the format found in Tools->Offline. It didn't 
> take any of the data I entered for the Requestor and Owner and a few 
> other fields. SO I went to the file you wrote here, just to see what I 
> can see (the bear went over the mountain...) and the TakeAction file is 
> not in that directory. Would my trouble creating a ticket via email with 
> the offline format be caused by that file NOT being there? Thanks.
> 
> Kenn
> LBNL
> 
> On 6/10/2008 2:35 PM, Ruslan Zakirov wrote:
>> Guys, in lib/RT/Interface/Email/Filter/TakeAction.pm file replace the
>> following line:
>> 
>>         last if $line !~ /^(?:(\S+)\s*?:\s*?(.*)\s*?|)$/;
>> 
>> with
>> 
>>         last if $line !~ /^(?:([^:]+)\s*?:\s*?(.*)\s*?|)$/;
>> 
>> stop and start server, test, report back. however this change will
>> make ':' character illegal in CF name.

BTW, this caused a little problem when someone opened a ticket with the
contents of a log file, so I tweeked the regex to make it just a
_little_ more restrictive:

last if $line !~ /^(?:([^:]+):\s+?(.*)\s*?|)$/;

Thanks again, BTW. This saved me from renaming all my Custom Fields. :-)

js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator <jsmoriss at mvlan.net>



More information about the rt-users mailing list