[rt-users] scipts not working

2011-03-24 Thread Violetta J. Wawryk
Hi List, RT: 3.6.7, debian5 sorry, I don't know what I am doing wrong, it must be my lack of pearl knowledge. I have the following scrip, with which I want to set a customfield value via email contents: *** Custom condition: my $AttachObj =

Re: [rt-users] scipts not working

2011-03-24 Thread Christian Loos
Try change the regexp from $content =~ m/^\QRT-Set-Test:\E\s*(\S+)\s*$/m to $content =~ /RT-Set-Test:\s*(.+)$/mg; -Chris Am 24.03.2011 11:17, schrieb Violetta J. Wawryk: Hi List, RT: 3.6.7, debian5 sorry, I don't know what I am doing wrong, it must be my lack of pearl knowledge. I have

Re: [rt-users] scipts not working

2011-03-24 Thread Kenneth Crocker
Christian, First, I'd re-arrange your code and simplify it. Start by using RT's standard condition On Create. That other stuff is just redundant to what you want to do and that clutters the logic flow. Then, I'd make the logic in your Custom Prep Code area more linear, or top down. This type of