Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMAP crashes with email that has no subject #94199

Closed
drjjr2 opened this issue Jun 8, 2023 · 4 comments · Fixed by #94230
Closed

IMAP crashes with email that has no subject #94199

drjjr2 opened this issue Jun 8, 2023 · 4 comments · Fixed by #94230
Assignees

Comments

@drjjr2
Copy link

drjjr2 commented Jun 8, 2023

The problem

IMAP crashes and stops working when an email is received that is just an image.

What version of Home Assistant Core has the issue?

2023.6.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

IMAP

Link to integration documentation on our website

https://www.home-assistant.io/integrations/imap/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

There is nothing in home_assistant.log to indicate an issue.

Additional information

I have attached an email that causes the integration to crash
original_msg.zip

@home-assistant
Copy link

home-assistant bot commented Jun 8, 2023

Hey there @jbouwh, mind taking a look at this issue as it has been labeled with an integration (imap) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of imap can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign imap Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


imap documentation
imap source
(message by IssueLinks)

@jbouwh
Copy link
Contributor

jbouwh commented Jun 8, 2023

Thanks for reporting, I'll have a closer look at this.

@jbouwh
Copy link
Contributor

jbouwh commented Jun 8, 2023

It seems to be the subject. The code is crashing because the header is not set.

@drjjr2 drjjr2 changed the title IMAP crashes with email that has an embedded image IMAP crashes with email that has no subject Jun 8, 2023
@drjjr2
Copy link
Author

drjjr2 commented Jun 8, 2023

It seems to be the subject. The code is crashing because the header is not set.

That makes sense. I fixed the error title. Thank you!

@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants