Support & Docs
Powered by HelpSpot

Set custom request field based on regex


Hi,

I am wondering if it is possible to set a custom field based on a regex?

I would like to extract the application name and version that are set in the email headers and use that to set two custom fields.

Application: OurApp

The custom field would be Application, and the regex would dicate the value.

In Perl regex it would be something like this...
Header matches /^Application:\s(\S+)$/
$ApplicationCustomField = $1

Thoughts? I could create a rule for each application and version, but I think this would be much cleaner.

Thanks!
June 23 2010, 05:14 PM
Hi Josh,

That's a nifty idea, but not currently possible. You'd have to do it via a mail rule with a different rule for each version.
18 hours since original post
Ian Landsman |
This topic is closed