Open cjhesse opened 1 year ago
Hah, yep it's because https://github.com/emcniece/ha_imap_attachment/blob/master/sensor.py#L218 assumes that the header field will be present. Interesting that if a subject is left blank the header is omitted entirely. The solution will be to try/catch reading the Subject header.
Thanks for the report, I'll patch this asap.
If my inbox contains emails without subjects, I get this error: