Skip to content

읽음·별표 상태를 IMAP 서버와 동기화(1단계) - #67

Merged
littlebit0 merged 16 commits into
mainfrom
feat/issue-26-flag-sync
Nov 26, 2026
Merged

littlebit0 merged 16 commits into
mainfrom
feat/issue-26-flag-sync

Conversation

@littlebit0

Copy link
Copy Markdown
Owner

Refs

Refs #26

배경

DailyPostBox에서 읽어도 웹메일에서는 안 읽은 상태로 남고, 별표 기능이 없었다. 이슈 #26의 1단계(INBOX 읽음·별표 동기화)를 구현한다.

변경

  • 서버: 동기화 시 \Seen/\Flagged를 저장하고, POST /accounts/:accountId/messages/:messageId/flags가 imapflow messageFlagsAdd/Remove로 서버에 반영한 뒤 로컬 저장본을 갱신(서버 실패 시 로컬 유지). 메일 목록·상세 응답에 seen/flagged 추가.
  • 클라이언트: 메일을 열면 읽음 처리, 메일 화면에 별표·읽지 않음 토글, 목록에 별표 표시. 실패 시 되돌리고 안내(한/영 문구).

검증

  • 서버 tsc --noEmit, tsx --test 25개 통과(flags API 테스트 3개 추가). 클라이언트 flutter analyze, flutter test 통과.
  • macOS 디버그 빌드 실행 확인: 앱이 서버(빈 상태)에 붙어 기동. 계정을 추가하지 않아 메일 화면과 실제 IMAP 반영은 보지 못함.

미확인/후속

  • 실계정 IMAP 반영, 메일 화면 UI 캡처는 미확인. 읽음 자동 처리 끄기 설정은 미구현.
  • 2~4단계(메일함 목록, 보관·삭제·이동, 다른 곳 변경 반영)와 POP3는 후속. 기존 저장 메일은 다음 동기화 전까지 안 읽음으로 표시됨.

INBOX 메일의 \Seen·\Flagged 상태를 저장하고 flags API로 서버에 반영한다.
메일을 열면 읽음 처리하고, 메일 화면에서 읽지 않음·별표를 바꿀 수 있다.
@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-26T18:51:26.569190Z
We couldn’t complete this review. Comment @codex review to try again.
fdc8dec New commits
🔒 Security Review ✅ Completed 2026-11-21T16:03:42.993181Z 851e61c 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.

@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: 71a4ef5b66

ℹ️ 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".

@littlebit0

Copy link
Copy Markdown
Owner Author

Codex 지적 3건을 04690f6에서 반영했습니다.

@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: 04690f6ff3

ℹ️ 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".

Comment thread apps/client/test/widget_test.dart Resolved
@littlebit0

Copy link
Copy Markdown
Owner Author

Codex 지적 2건을 b1f30c4에서 반영했습니다.

@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: b1f30c4bc0

ℹ️ 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".

필드별 확정값을 보관하고, 더 새로운 요청이 대기 중이 아닐 때만 그 값으로 되돌립니다.
@littlebit0

Copy link
Copy Markdown
Owner Author

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

@codex review

언어 (최우선)

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

댓글작성

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

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 851e61c16f

ℹ️ 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: 851e61c16f

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.

# Conflicts:
#	apps/client/test/widget_test.dart
#	apps/server/package.json
#	apps/server/src/mail/ImapReceiver.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.

@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.

@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.

@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.

# Conflicts:
#	apps/client/lib/features/inbox/inbox_page.dart
#	apps/client/lib/features/message/message_page.dart
#	apps/server/package.json
#	apps/server/src/api/routes.ts
#	apps/server/src/workers/AccountRepository.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.

# Conflicts:
#	apps/client/test/widget_test.dart
#	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.

@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.

# Conflicts:
#	apps/client/lib/core/i18n/language_controller.dart
#	apps/client/lib/features/message/message_page.dart
@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.

# Conflicts:
#	apps/client/lib/core/i18n/language_controller.dart
#	apps/client/lib/features/accounts/account_mailbox_page.dart
#	apps/client/lib/features/message/message_page.dart
#	apps/client/lib/services/mail_api_client.dart
#	apps/client/test/widget_test.dart
#	apps/server/package.json
#	apps/server/src/api/routes.ts
#	apps/server/src/mail/ImapReceiver.ts
#	apps/server/src/mail/MailReceiver.ts
#	apps/server/src/server.ts
#	apps/server/test/accountValidate.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 6649732 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