Message not coming

I have tried the following code to read the body of the email using IMAP:

description: ""
trigger:
  - platform: event
    event_type: imap_content
    event_data:
      username: [email protected]
      sender: [email protected]
      initial: true
    context: {}
condition: []
action:
  - service: notify.persistent_notification
    metadata:
      hi: null
    data:
      message: "{{ trigger.event.data['text'] }}"
mode: single

but i dont seem to get the notification

Please post your code using the community standards. The following link explains how to use the back tick to post code. See #11. It will expedite a solution :grinning: