mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Adding charset to imap component (#10967)
This commit is contained in:
parent
0f574d3f5a
commit
057fb85caf
@ -55,6 +55,11 @@ search:
|
|||||||
required: false
|
required: false
|
||||||
default: UnSeen UnDeleted
|
default: UnSeen UnDeleted
|
||||||
type: string
|
type: string
|
||||||
|
charset:
|
||||||
|
description: The characterset used for this connection
|
||||||
|
required: false
|
||||||
|
default: UTF-8
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
### Configuring IMAP Searches
|
### Configuring IMAP Searches
|
||||||
@ -68,7 +73,7 @@ By default, this integration will count unread emails. By configuring the search
|
|||||||
#### Full configuration sample with search
|
#### Full configuration sample with search
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry for gmail
|
||||||
sensor:
|
sensor:
|
||||||
- platform: imap
|
- platform: imap
|
||||||
server: imap.gmail.com
|
server: imap.gmail.com
|
||||||
@ -76,4 +81,15 @@ sensor:
|
|||||||
username: YOUR_USERNAME
|
username: YOUR_USERNAME
|
||||||
password: YOUR_PASSWORD
|
password: YOUR_PASSWORD
|
||||||
search: FROM <sender@email.com>, SUBJECT <subject here>
|
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