Skip to content

Match rule by content of document #32

@svenwanzenried

Description

@svenwanzenried

I'd like to create a rule which is only executed if in the documents content the string "foo bar" is found. (In my case I want to distingush letters from the same correspondent by keywords in the document)

In my understanding, I would have to define that in the match expression (probably with the match_regex() somehow. But I can not figure out how to do this with a Jinja expression. I'm sorry if this is a too trivial question, but this seems to me like a very common use case, and I wanted to ask it here, so any other beginner in Jinja will find this here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions