IMAP listener

Settings to connect Gunbot to an IMAP email box, to receive alerts for the TradingView add-on.

The IMAP listener settings are only needed when you use the TradingView add-on to let Gunbot execute email alerts.

Using these settings, Gunbot connects to the email address where alerts are sent to.

To change them, go to Settings > IMAP Listener.

Settings options to connect Gunbot to your IMAP mailbox.

Tips for Gmail users

Settings descriptions

Below you'll find detailed descriptions of all available parameters for the IMAP listener.

Enabled (IMAP listener)

Description
Values
Name
Description

Set this to true to enable the TradingView plugin. Not all license types support this option.

Values

Values: true or false

Default value: false

Name

Parameter name in config.js: enabled

Authorized froms

Description
Values
Name
Description

Sets the email addresses that should be processed for incoming alerts. Make sure that the alert message in contained in the email subject.

Multiple address are possible if you enter them like this: ["email-1@mail.com","email-2@mail.com"]

Values

Values: string, represents one or more email addresses

Default value: ["noreply@tradingview.com"]

Name

Parameter name in config.js: authorized_froms

User

Description
Values
Name
Description

Set the username for the IMAP server, usually your own email address. Gunbot will listen for incoming alerts on this address.

Values

Values: string, represents a username

Default value: YOUREMAIL

Name

Parameter name in config.js: user

Password

Description
Values
Name
Description

Enter the password for your own email address, used for connecting to the IMAP server.

Values

Values: string, represents a password

Default value: YOURPASSWORD

Name

Parameter name in config.js: password

Host

Description
Values
Name
Description

The address of the IMAP server that the listener needs to connect to.

Values

Values: string, represents a hostname

Default value: imap.gmail.com

Name

Parameter name in config.js: host

Port (IMAP)

Description
Values
Name
Description

Defines the port number for the IMAP server.

Values

Values: number, represents a port number

Default value: 993

Name

Parameter name in config.js: port

TLS

Description
Values
Name
Description

Defines if TLS encryption is used for the IMAP connection.

Values

Values: true or false

Default value: true

Name

Parameter name in config.js: tls

rejectUnauthorized

Description
Values
Name
Description

Enable this to allow connections to IMAP servers using a certificate unknown to certificate authorities.

Values

Values: true or false

Default value: false

Name

Parameter name in config.js: rejectUnauthorized (child of tlsOptions)