Add option to increase max message size in imap custom event data (#27425)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Jan Bouwhuis 2023-05-22 12:15:55 +02:00 committed by GitHub
parent 8f749f578a
commit 2144ccaff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
<div class='note warning'>
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.
</div>
{% raw %}
```yaml