Files
mailc/.env.example
2026-04-18 23:58:27 +08:00

36 lines
1.8 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ================= 邮箱配置(通用) =================
MAIL_PROTOCOL=IMAP # IMAP 或 POP3
IMAP_SERVER=imap.example.com
POP3_SERVER=pop3.example.com
SMTP_SERVER=smtp.example.com
MAIL_USER=your_email@example.com
MAIL_PASS=your_app_password
RECIPIENT_EMAIL=your_email@example.com # 结果发送目标(通常同发件人)
SMTP_PORT=465 # 465(SSL) 或 587(TLS)
IMAP_PORT=993
POP3_PORT=995
# ================= 工具配置 =================
TEMP_DIR=./temp
KEEP_TEMP_FILES=False
SUPPORTED_INPUT_FORMATS=jpg,jpeg,png,webp,gif,bmp,tiff
SUPPORTED_OUTPUT_FORMATS=jpg,jpeg,png,webp,gif,bmp,tiff
DEFAULT_QUALITY=85
# ================= 新增功能配置 =================
ALLOWED_DOMAINS=example.com,myorg.net # 白名单域名,逗号分隔,支持 *.example.com 通配符
SPLIT_VOLUME_SIZE_MB=0 # 分卷大小(MB)0表示不分卷
MAX_ATTACHMENT_SIZE_MB=25 # 单个附件最大MBSMTP限制)
MAX_EMAILS_PER_RUN=10 # 单次运行最多处理邮件数
KEEP_ORIGINAL_ATTACHMENT_COUNT=True # 保持原附件数量(每个原附件返回一个文件或ZIP)
FLATTEN_OUTPUT=False # 若为True,所有转换结果平铺为多个附件(忽略KEEP_ORIGINAL_ATTACHMENT_COUNT
# ================= 协议同意 =================
AGREED_TOS=False # 手动确认已同意协议(若为False则首次运行时需邮件确认)
AGREEMENT_FILE=./AGREED # 协议同意标记文件路径
ADMIN_EMAIL=admin@example.com # 接收协议请求的管理员邮箱(通常同MAIL_USER)
# 循环监听配置
POLL_INTERVAL_SECONDS=60 # 每次轮询间隔(秒),设为0则只运行一次
RUN_FOREVER=true # 是否无限循环运行