Subject: | Char limit in |Matchstring(re)| |
There appears to be a char limit in the Matchstring. char length 18?
This works when proper field in email body
<body>
Correlation Messag=UHT-Attack_Access_Modification_HostBased_Overflow-IPS
<end body>
env_CorrMessageID|Body|Correlation Messag=(.+)?||q
This does not work when proper field in email body
<body>
Correlation Message=UHT-Attack_Access_Modification_HostBased_Overflow-IPS
<end body>
env_CorrMessageID|Body|Correlation Message=(.+)?||q
RT 3.8.1
This is perl, v5.8.8 built for i386-linux-thread-multi
Linux xxxxx.xxx.xxx 2.6.18-92.1.10.el5 #1 SMP Tue Aug 5 07:41:53 EDT
2008 i686 i686 i386 GNU/Linux
this is rt.log (debug on) when Matchstring 18 chars or less:
[Tue Jul 19 14:21:30 2011] [debug]: Looking to extract:
CFName=env_CorrMessageID Field=Body Match=Correlation Messag=(.+)?
Options=q PostEdit=
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:60)
[Tue Jul 19 14:21:30 2011] [debug]: Looking for CF env_CorrMessageID
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:109)
[Tue Jul 19 14:21:30 2011] [debug]: Found CF id 27
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:124)
[Tue Jul 19 14:21:30 2011] [debug]: Looking at attachment 1,
content-type multipart/mixed
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:143)
[Tue Jul 19 14:21:30 2011] [debug]: Looking at attachment 2,
content-type text/plain
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:143)
[Tue Jul 19 14:21:30 2011] [debug]: Examining content of body
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:154)
[Tue Jul 19 14:21:30 2011] [debug]: Found value for CF:
UHT-Attack_Access_Modification_HostBased_Overflow-IPS
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:193)
[Tue Jul 19 14:21:30 2011] [info]: CustomFieldValue
(env_CorrMessageID,UHT-Attack_Access_Modification_HostBased_Overflow-IPS) added:
31666 env_CorrMessageID
UHT-Attack_Access_Modification_HostBased_Overflow-IPS added
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:199)
[Tue Jul 19 14:21:30 2011] [debug]: Looking at attachment 3,
content-type image/gz
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:143)
this is rt.log (debug on) when Matchstring more then 18 chars:
[Tue Jul 19 14:24:15 2011] [debug]: Looking to extract:
CFName=env_CorrMessageID Field=Body Match=Correlation Message=(.+)?
Options=q PostEdit=
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:60)
[Tue Jul 19 14:24:15 2011] [debug]: Looking for CF env_CorrMessageID
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:109)
[Tue Jul 19 14:24:15 2011] [debug]: Found CF id 27
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:124)
[Tue Jul 19 14:24:15 2011] [debug]: Looking at attachment 1,
content-type multipart/mixed
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:143)
[Tue Jul 19 14:24:15 2011] [debug]: Looking at attachment 2,
content-type text/plain
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:143)
[Tue Jul 19 14:24:15 2011] [debug]: Examining content of body
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:154)
[Tue Jul 19 14:24:15 2011] [debug]: Looking at attachment 3,
content-type image/gz
(/opt/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:143)
[Tue Jul 19 14:24:15 2011] [debug]: Committing scrip #3 on txn #76512 of
ticket #3322 (/opt/rt3/bin/../lib/RT/Scrips_Overlay.pm:190)