Skip to content

헤더 기반 메일 자동 분류와 분류 탭 (#37 1단계) - #72

Merged
littlebit0 merged 9 commits into
mainfrom
feat/issue-37-header-categories
Nov 26, 2026
Merged

littlebit0 merged 9 commits into
mainfrom
feat/issue-37-header-categories

Conversation

@littlebit0

@littlebit0 littlebit0 commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Refs

Refs #37

배경

모든 메일이 한 목록에 섞여 사람 메일이 광고에 묻힌다. 이슈 1단계(헤더 기반 자동 분류와 탭)를 구현한다.

변경

  • 서버: IMAP 수신 시 List-Unsubscribe, List-Id, Precedence, Auto-Submitted 헤더를 조회해 사람/알림/뉴스레터로 분류하고 요약의 category에 저장(classifyMessage.ts, 단위 테스트 포함).
  • 서버: IMAP 동기화 후 category 없는 저장 메일을 헤더만 다시 조회해 채움(50개씩, 동기화당 최대 500개, 처리분은 재조회 안 함).
  • 클라이언트: 계정 메일함 목록 위에 전체/사람/알림/뉴스레터 칩 필터. category가 없는 기존 메일은 전체 탭에만 보인다.

검증

  • 서버 tsc, 테스트 27개 통과. 클라이언트 analyze, test 통과.
  • macOS 디버그 빌드를 가짜 계정 데이터(example.test)로 실행해 계정 화면까지 확인, 메일 API가 category를 반환함을 curl로 확인.

미확인/후속

  • 메일함 분류 탭 화면은 시스템 팝업이 가려 캡처로 확인하지 못함. 청구 분류, 분류 정정·학습, 새 발신자 심사(2단계), 사용자 규칙(3단계), 실제 Gmail·네이버·다음 헤더 확인은 후속. 기존 메일 분류 보충 후 실제 IMAP 서버 응답과 대용량(4,068통) 보관함의 동작은 미확인(실화면 미확인).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-26T19:44:52.956091Z
We couldn’t complete this review. Comment @codex review to try again.
22225b6 New commits
🔒 Security Review ✅ Completed 2026-11-21T16:20:55.052838Z b5386f3 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

- 클라이언트: category가 없는 메일은 전체 탭에만 표시
- 서버: IMAP 동기화 후 category 없는 저장 메일을 헤더만 다시 조회해 채움(50개씩, 동기화당 최대 500개, 처리된 메일은 사람이어도 값을 저장해 재조회하지 않음)
@littlebit0

Copy link
Copy Markdown
Owner Author

실제 macOS 앱 확인에서 나온 문제: 분류가 저장되지 않은 기존 메일 4,068통이 모두 "사람" 탭에 들어가 자동 발송 메일이 섞였습니다.

  • 클라이언트: category가 없는 메일은 "전체"에만 표시하고 "사람"에는 넣지 않습니다.
  • 서버: IMAP 동기화 후 category가 없는 저장 메일의 분류 헤더만 다시 조회해 채웁니다(50개씩, 동기화당 최대 500개). 사람 분류도 값을 저장해 다시 조회하지 않습니다.

커밋: 8958654

@codex review

언어 (최우선)

리뷰 제목·본문·요약·지적 사항은 모두 한국어로 작성하세요.

댓글작성

지적은 문제, 재현 조건, 수정 방향 순서로 짧게 쓰세요.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8958654dc7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 8958654dc7

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@littlebit0

Copy link
Copy Markdown
Owner Author

Codex 지적 1건을 b5386f3에서 반영했습니다.

@codex review

언어 (최우선)

리뷰 제목·본문·요약·지적 사항은 모두 한국어로 작성하세요.

댓글작성

지적은 문제, 재현 조건, 수정 방향 순서로 짧게 쓰세요.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: b5386f3f43

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: b5386f3f43

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

…categories

# Conflicts:
#	apps/server/package.json
#	apps/server/src/workers/MailSyncWorker.ts
#	apps/server/test/mailSyncWorker.test.ts
…categories

# Conflicts:
#	apps/client/test/widget_test.dart
#	apps/server/package.json
#	apps/server/src/mail/ImapReceiver.ts
#	apps/server/test/mailSyncWorker.test.ts
…categories

# Conflicts:
#	apps/server/package.json
…categories

# Conflicts:
#	apps/server/package.json
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

…categories

# Conflicts:
#	apps/server/package.json
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

…categories

# Conflicts:
#	apps/client/lib/core/i18n/language_controller.dart
#	apps/client/lib/features/accounts/account_mailbox_page.dart
#	apps/client/lib/services/mail_api_client.dart
#	apps/client/test/widget_test.dart
#	apps/server/package.json
#	apps/server/src/domain/types.ts
#	apps/server/src/mail/ImapReceiver.ts
#	apps/server/src/workers/MailSyncWorker.ts
#	apps/server/test/mailSyncWorker.test.ts
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@littlebit0
littlebit0 merged commit 1d8ae70 into main Nov 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant