Fix large imap_content event warning by truncating the email text body to 2 KiB (#92066)

pull/91995/head^2
Jan Bouwhuis 2023-04-26 18:44:22 +02:00 committed by GitHub
parent ead761dfa2
commit 5a78684998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ class ImapDataUpdateCoordinator(DataUpdateCoordinator[int | None]):
"search": self.config_entry.data[CONF_SEARCH],
"folder": self.config_entry.data[CONF_FOLDER],
"date": message.date,
"text": message.text,
"text": message.text[:2048],
"sender": message.sender,
"subject": message.subject,
"headers": message.headers,