-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathconfig-template.py
More file actions
22 lines (22 loc) · 1.15 KB
/
config-template.py
File metadata and controls
22 lines (22 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
EMAILS = [
{
'EMAIL': 'example@gmail.com',
'PASSWORD': 'password/application password',
'IMAP_SERVER': 'imap.gmail.com',
'IMAP_SERVER_PORT': 993,
},
{
'EMAIL': 'example@qq.com',
'PASSWORD': 'password',
'IMAP_SERVER': 'imap.qq.com',
'IMAP_SERVER_PORT': 993,
},
# 可以添加更多邮箱配置... (You can add more email configurations...)
]
TELEGRAM_BOT_TOKEN = 'BOT_TOKEN'
TELEGRAM_CHAT_ID = 'CHAT_ID' # 把邮件转发到的telegram chat id (The Telegram chat ID where you want to forward emails)
TELEGRAM_JUNK_CHAT_ID = 'CHAT_ID' # 把垃圾邮件发到的的telegram chat id,如果未设置(TELEGRAM_JUNK_CHAT_ID=''),则跳过垃圾邮件转发
RETRY_LIMIT = 5 # 失败后重试次数 (Number of retry attempts after a failure)
RETRY_DELAY = 5 # 失败重试时间间隔 (Time interval between retry attempts after a failure)
RECONNECT_INTERVAL = 1800 # 主动断开重连时间,单位秒 (Interval for proactive disconnection and reconnection, in seconds)
RETRY_PAUSE = 600 # 重试多次失败后,停止时间,单位秒 (Pause time after multiple failed retries, in seconds)