From 2144ccaff53cdf6bdc3a3fcf36461c9fe0ba6a03 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Mon, 22 May 2023 12:15:55 +0200 Subject: [PATCH] Add option to increase max message size in imap custom event data (#27425) Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --- source/_integrations/imap.markdown | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/_integrations/imap.markdown b/source/_integrations/imap.markdown index 032f1e51612..d1037ac1fbb 100644 --- a/source/_integrations/imap.markdown +++ b/source/_integrations/imap.markdown @@ -77,7 +77,7 @@ search: folder: description: The IMAP folder configuration text: - description: The email body `text` of the the message (only the first 2048 bytes will be available) + description: The email body `text` of the message (by default, only the first 2048 bytes will be available) sender: description: The `sender` of the message subject: @@ -91,6 +91,14 @@ headers: The `event_type` for the custom event should be set to `imap_content`. The configuration below shows how you can use the event data in a template `sensor`. +If the default maximum message size (2048 bytes) to be used in events is too small for your needs, then this maximum size setting can be increased. You need to have your profile set to _advanced_ mode to do this. + +
+ +Increasing the default maximum message size (2048 bytes) could have a negative impact on performance as event data is also logged by the `recorder`. If the total event data size exceeds the maximum event size (32168 bytes), the event will be skipped. + +
+ {% raw %} ```yaml