IMAP Unread E-mail


The imap sensor platform is observing your IMAP server and reporting the amount of unread emails.

Configuration

To enable this sensor, add the following lines to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: imap
    server: imap.gmail.com
    port: 993
    username: YOUR_USERNAME
    password: YOUR_PASSWORD

Configuration Variables

server

(string)(Required)The IP address or hostname of the IMAP server.

port

(integer)(Optional)The port where the server is accessible.

Default value: 993

name

(string)(Optional)Name of the IMAP sensor.

username

(string)(Required)Username for the IMAP server.

password

(string)(Required)Password for the IMAP server.

folder

(string)(Optional)The IMAP folder to watch.

Default value: inbox