mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 00:36:49 +00:00
Adding charset to imap component (#10967)
This commit is contained in:
parent
0f574d3f5a
commit
057fb85caf
@ -55,6 +55,11 @@ search:
|
||||
required: false
|
||||
default: UnSeen UnDeleted
|
||||
type: string
|
||||
charset:
|
||||
description: The characterset used for this connection
|
||||
required: false
|
||||
default: UTF-8
|
||||
type: string
|
||||
{% endconfiguration %}
|
||||
|
||||
### Configuring IMAP Searches
|
||||
@ -68,7 +73,7 @@ By default, this integration will count unread emails. By configuring the search
|
||||
#### Full configuration sample with search
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
# Example configuration.yaml entry for gmail
|
||||
sensor:
|
||||
- platform: imap
|
||||
server: imap.gmail.com
|
||||
@ -76,4 +81,15 @@ sensor:
|
||||
username: YOUR_USERNAME
|
||||
password: YOUR_PASSWORD
|
||||
search: FROM <sender@email.com>, SUBJECT <subject here>
|
||||
charset: utf-8
|
||||
|
||||
# Example configuration.yaml entry for Office 365
|
||||
sensor:
|
||||
- platform: imap
|
||||
server: outlook.office365.com
|
||||
port: 993
|
||||
username: email@address.com
|
||||
password: password
|
||||
search: FROM <sender@email.com>, SUBJECT <subject here>
|
||||
charset: US-ASCII
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user