01504e6295
feat: three-stage status: 获取邮件中 -> 等待处理 -> AI思考中
2026-07-13 08:19:36 +08:00
02b0941ed0
feat: two-stage status messages: 获取邮件中 -> AI思考中
2026-07-13 08:15:25 +08:00
85b02651b9
revert: use debug log for unselectable folders instead of warning
2026-07-13 08:11:30 +08:00
e74ae8be88
fix: quote folder names in IMAP SELECT for folders with spaces
2026-07-13 08:10:39 +08:00
f38259e4bb
fix: mark_as_seen uses readonly=False to actually set Seen flag
2026-07-13 08:05:40 +08:00
5368812e45
fix: skip NoSelect folders, clean up debug logging
2026-07-13 08:04:26 +08:00
8c088ddff5
debug: add skip_uids logging to diagnose re-fetch issue
2026-07-13 07:54:13 +08:00
0ec2048bc5
fix: never discard from _processing_uids to prevent re-fetching
2026-07-13 07:49:09 +08:00
155a6dfc53
fix: skip already-processing UIDs at FETCH level to avoid downloading email content
2026-07-13 07:35:28 +08:00
d31ec18ea3
fix: restore -FLAGS Seen after FETCH, protected by _processing_uids
2026-07-13 07:13:08 +08:00
02cf4b88b6
fix: add _processing_uids to prevent re-fetching emails being processed
2026-07-13 07:12:43 +08:00
ae140df3fb
chore: remove accidental file
2026-07-13 06:57:28 +08:00
e9398526e6
fix: login without selecting INBOX first so conn.list() returns all folders
2026-07-13 06:57:06 +08:00
479b855390
feat: scan all IMAP folders for unread emails, not just INBOX
2026-07-13 00:16:28 +08:00
46bc7c7057
prompt: force simplified Chinese for all AI outputs except reply suggestions
2026-07-13 00:12:50 +08:00
bbc43f8972
fix: keep pending_uids until TG send completes to prevent duplicate processing
2026-07-12 23:51:45 +08:00
87e4b0b01e
prompt: refine link extraction to exclude promotional links
2026-07-12 10:15:25 +08:00
fc4c5a175c
feat: show thinking indicator during AI processing, accept non-numeric verification codes
2026-07-11 22:54:06 +08:00
1c7d0c1b00
fix: mark emails back as UNSEEN after FETCH to counter server auto-read
2026-07-11 22:45:31 +08:00
5320b10317
fix: per-email error handling with connection rebuild, remove @retry on fetch
2026-07-11 22:43:39 +08:00
d8807ffbb5
fix: remove body truncation for large emails
2026-07-11 22:38:40 +08:00
8d40ed8b19
fix: use BODY.PEEK for large emails to prevent server auto-marking as read on timeout
2026-07-11 22:38:07 +08:00
57191ab00e
feat: remove body truncation for all AI requests, increase API timeout to 120s
2026-07-11 22:32:47 +08:00
13b76c00ab
feat: add tell me more button for promotion emails with AI-generated details
2026-07-11 22:17:10 +08:00
cf0f7d3956
style: restructure email formats with 收件账户 and app_name for verification
2026-07-11 22:11:15 +08:00
e56bdef0f7
fix: use single backtick for tap-to-copy, remove copy_text button
2026-07-11 22:05:02 +08:00
6d1fe29df4
fix: copy_text field must be an object with text key
2026-07-11 21:57:19 +08:00
05b15d9ee3
fix: use copy_text field instead of duplicate text key
2026-07-11 21:52:07 +08:00
03c18cdb76
fix: copy button shows only the code number
2026-07-11 21:49:54 +08:00
b835812f38
feat: add copy_text button for verification codes
2026-07-11 21:47:54 +08:00
070c32071a
style: beautify email formats with type labels and consistent layout
2026-07-11 21:42:35 +08:00
5a21aeee14
chore: remove test scripts
2026-07-11 21:35:58 +08:00
8007fa1cc4
fix: always use MarkdownV2 for all message types
2026-07-11 21:35:22 +08:00
43994d2b0d
fix: remove null parse_mode from tg payload, add error logging
2026-07-11 21:22:20 +08:00
a992af0e02
refactor: remove action_required/action_items/key_points, keep summary concise
2026-07-11 19:46:18 +08:00
1957eb2a73
feat: extract clickable links from email and show as URL buttons
2026-07-11 19:38:33 +08:00
be4e957af9
feat: verification emails displayed as platform + code
2026-07-08 16:15:51 +08:00
9991e4ef17
feat: promotional emails summarized as who promotes what
2026-07-08 16:13:54 +08:00
ea6358019d
chore: AI并行workers 5→10
2026-07-06 20:13:15 +08:00
d70b817fd4
feat: AI并行处理 + 修复邮件丢失
...
- _ai_processor 改用 ThreadPoolExecutor(5 workers) 并行调用AI
- _tg_worker 每轮排空所有待发TG消息(原来每轮只取1条)
- fetch_unseen_emails 单封FETCH失败不再丢弃整个批次,跳过继续
2026-07-06 20:12:24 +08:00
0c1ccdfc79
fix: 修复 _email_poller 线程静默死亡问题
...
- IMAP 连接加 30s socket timeout,防止 _send_id_command 等操作永久阻塞
- _email_poller 加顶层 try/except,异常后 sleep 5s 继续循环
- @retry() 加指数退避延迟(1s,2s,4s...),避免重试风暴
2026-07-06 19:54:23 +08:00
c684090b9c
feat: handle Reply-To header, add account_email field, decode address headers
2026-07-02 22:37:15 +08:00
d7daddf491
feat: IMAP 支持 SSL/STARTTLS 配置
2026-07-02 22:18:51 +08:00
05135ee0cc
chore: 添加 requirements.txt
2026-07-02 22:05:07 +08:00
ad950ff367
feat: 收件人/发件人改用邮件原始头数据
...
- sender 从 decode 改为使用原始 From 头
- 新增 recipient 字段,使用原始 To 头
- 移除 ai_process 中对 acct.username 的依赖
2026-07-02 22:04:27 +08:00
2ebcad0a70
feat: include reply content in send confirmation message
2026-07-02 21:01:05 +08:00
d334b6f3eb
feat: enhance logging detail across all modules
...
- email_client: log IMAP connection, login, UNSEEN count, each email
details (subject/sender/body size), mark-as-seen progress
- ai_client: log AI request params, timing, token usage, response size
- smtp_client: log SMTP connect, login, send details
- tg_bot: log all callback actions with subject context, message states
- main: periodic queue depth report (email_queue/tg_queue/pending_uids)
2026-07-02 21:00:40 +08:00
934d6a7545
fix: thread-safe logging with QueueHandler + QueueListener
...
- Replace logging.basicConfig with QueueHandler/QueueListener
so all log output writes from a single thread
- Add %(threadName)s to format for thread identification
2026-07-02 20:57:33 +08:00
be412168bb
fix: also delete user's message when cleaning up reply/hint flow
2026-07-02 20:56:30 +08:00
08a1a32367
fix: use original email From header for reply address instead of AI output
...
- send_summary now accepts original_sender (raw From header)
- Context stores original_sender separately from AI-generated sender
- _do_send_reply tries original_sender first, then AI sender fallback
2026-07-02 20:55:40 +08:00