emcniece / ha_imap_attachment

Home Assistant IMAP Attachment Component
7 stars 3 forks source link

Filter on both subject and attachments #3

Open jkaberg opened 3 years ago

jkaberg commented 3 years ago

Thanks for this fantastic addition @emcniece !

I was wondering if you'd consider implementing:

I get a lot of emails from one adress, only of which few of these contains relevant information. Then in the relevant email there are sometimes several files

jkaberg commented 3 years ago

Maybe something like:

sensor:
  - platform: imap_attachment
    name: Utility Bill Email
    server: imap.gmail.com
    port: 993
    username: user@domain.com
    password: hunter2
    senders:
      noreply@somedomain.com:
        regex_subject: 
        regex_subject_stop_after:
        regex_attachment:
        regex_attachment_stop_after: