Files
Z User e45b68bb8b feat: IMAP mail sync with thread-to-contact matching (PRD §6.1)
Real IMAP connection via imapflow library:
- Connects to IMAP server (IMAPFlow, TLS on port 993)
- Fetches recent messages (configurable limit, default 20)
- Extracts: from, fromEmail, subject, date, snippet (200 chars)
- Thread-to-contact matching (PRD §6.1):
  1. Match sender email against persons table
  2. If no person match, extract domain and match against company.website
  3. Returns matchedCompany + matchedPerson for each email
- Audit-logged (action: crm.mailsync:imap)
- Zod validated (host, port, user, password, folder, limit)
- 502 on IMAP connection failure with detail
- 400 on validation failure

Tested: invalid creds → 502 'IMAP connection failed', missing host → 400
2026-10-27 22:50:50 +00:00

51 lines
1.5 KiB
Markdown
Executable File
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.
# 互联网产品 / 运营 / PM 简历模板
## 结构(顺序很重要)
```
姓名|电话|邮箱|城市|目标岗位
(应届可加:在读学校 + 期望毕业时间)
【个人简介 / Summary】(2~3 行,可选)
一句话定位:X 年 ___ 经验,专注 ___,擅长 ___,曾在 ___ 主导 ___
【工作经历】(社招放最前;应届放教育下面)
公司 A | 岗位 | 起止时间
- bullet 1(核心成绩,量化)
- bullet 2(次重要成绩)
- bullet 3(横向能力 / 影响力)
【项目经历】(与岗位强相关的 2~4 个)
项目名 | 角色 | 时间
- 背景:___(一句话)
- 动作:___(你做了什么)
- 结果:___(量化)
【教育背景】
学校 | 专业 | 学历 | 起止时间
(GPA 高于 3.5/4.0 才写)
【技能 / 工具】
- 数据:SQL(熟练)、Python(pandas/numpy)、Tableau
- 产品工具:Figma / Axure / 墨刀
- 协作:Notion / 飞书 / Jira
- 语言:英语 CET-6 / 雅思 7.0
【其他】(可选)
证书 / 自媒体 / 开源项目 / 演讲 / 获奖
```
## 风格要点
- bullet 句式:"动词 + 对象 + 方法 + 结果(数字)"
- 突出 ownership:用"主导/负责/推动",不要用"参与/协助"
- 数字密度:每段经历 ≥ 60% 的 bullet 含数字
- 长度:1 页(≤ 3 年经验);最多 2 页(5+ 年)
## 常见加分项
- 0-1 项目经历(哪怕规模小)
- 跨部门 / 跨业务线协作
- 业务复盘文章 / 公开演讲
- 数据驱动 case(写清楚假设→实验→结论)