dockers icon indicating copy to clipboard operation
dockers copied to clipboard

Alert Keyword section to handle values not enclosed in square brackets

Open vi-or-die opened this issue 6 years ago • 1 comments

Is there anyway we can configure the script to evaluate the whole alert keyword field as a regular expression?

I built a centralized mailbox that has mail rules to move messages to subfolders. I then built a scheduled task that runs the imap2thehive with different configuration files to point at those subfolders. I wanted to create alerts in the Hive for triaging and then things that can't be weeded out will be imported as cases.

The regular expression in the Alert Keyword field within the configuration file seems to only analyze values contained between the square brackets [ ] in a subject.

I have been struggling to build different regular expressions. simply removing the \S* from the regular expression doesn't work.

vi-or-die avatar Jul 02 '18 20:07 vi-or-die

Thank you for the feedback. It looks an interesting enhancement. I'll look into it. I'm also working on a way to fill extra-fields based on regexes.

xme avatar Jul 02 '18 20:07 xme