- IMAP服务器 111.229.206.54 只开放143端口(非SSL),993不通 - 默认配置改为端口143、ssl=False - EmailVerifier 增加 use_ssl 参数,支持 IMAP4 和 IMAP4_SSL - Account 模型增加 email_imap_ssl 字段 - 数据库迁移:新增列 + 修正旧数据端口和SSL设置 - 导入账号时自动填充 ssl 配置 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
29 lines
533 B
Python
29 lines
533 B
Python
"""核心数据模型"""
|
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class Account:
|
|
"""账号配置"""
|
|
username: str
|
|
password: str
|
|
email: str
|
|
email_password: str
|
|
email_imap_server: str
|
|
email_imap_port: int = 993
|
|
email_imap_ssl: bool = True
|
|
|
|
|
|
@dataclass
|
|
class ProxyConfig:
|
|
"""代理配置"""
|
|
enabled: bool = False
|
|
api_url: str = ""
|
|
http: str = ""
|
|
https: str = ""
|
|
# 白名单配置
|
|
whitelist_enabled: bool = False
|
|
whitelist_uid: str = ""
|
|
whitelist_ukey: str = ""
|