Syntax for multiple search criteria for IMAP search

Many thanks for this. I’ve replicated this exactly as per your code, but added additional senders (as per below) and sent an email which matches the criteria. The status of the binary sensor did not change from unknown.

I can see from the HA log that the trigger was initialised when I restarted HA, but there’s no other reference to it in the log.

Any ideas for how to diagnose/debug this?

template:

  - trigger:
      - platform: event
        event_type: "imap_content"
        event_data:
          sender: 
            - [email protected]
            - [email protected]
            - [email protected]
            - [email protected]
        id: "custom_event"
    binary_sensor:
      - name: Parking Booking
        auto_off: "00:05:00"
        state: >
          {% set current = this.state|default('off', 1) %}
          {% if trigger.event.data['subject'] is match
          "You have a new booking|Booking received|JustPark booking|Booking request for Onslow Road"
          %}
            true
          {% else %}
            {{ current }}
          {% endif %}