forked from bitfasching/slack-email-webhook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-example.js
48 lines (31 loc) · 1.23 KB
/
config-example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module.exports = {
/* :: IMAP Account Credentials :: */
// should be the same as your email address
username: "[email protected]",
// plaintext password (will be encrypted during transport by TLS)
password: "password",
/* :: IMAP Server Connection :: */
// IMAP server hostname
// (usually at the subdomain imap.* of your provider)
host: "imap.provider.net",
// IMAP over TLS uses port 993 as default
port: 993,
// if not connecting to a TLS port, force use of STARTTLS?
requireTLS: true,
/* :: Email Retrieval :: */
// mailbox (folder) to watch
// (will show available mailboxes if specified name not found)
mailbox: "INBOX",
// fetch unread mails on startup?
fetchUnread: true,
// truncate fetched mail to this many bytes
// (may fail to extract content for large messages, but helps to avoid DoS)
sizeLimit: 10 * 1024,
/* :: Slack :: */
// Incoming WebHooks URL as created here:
// https://slack.com/apps/A0F7XDUAZ-incoming-webhooks
webhookURL: "https://hooks.slack.com/services/…",
// show Cc: and Bcc: addresses in Slack notifications?
// (listed for sent mails together with receivers in To: field)
showCopy: true,
}