feat(mail): 본문 HTML 우선(메일앱처럼) + 스레드 순번(threadIndex/Count) 제공
build-and-push / build (push) Successful in 33s

- GetFull: text/plain 대신 text/html 우선 → 서식 있는 본문 렌더
- handleListProjectMails: 스레드별 ts 정렬 순번 계산해 threadIndex(1=원문)/threadCount 반환

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
theorose49
2026-06-30 15:50:11 +09:00
co-authored by Claude Opus 4.8
parent e0cd216800
commit d9ab9934c0
2 changed files with 27 additions and 4 deletions
+4 -3
View File
@@ -364,11 +364,12 @@ func (s *Service) GetFull(ctx context.Context, mailbox, rfc822 string) (FullMess
}
walk(out.Payload)
fm := FullMessage{GmailID: gid, Attachments: atts}
if plain != "" {
fm.Body = plain
} else {
// 메일앱처럼 보이도록 HTML 본문 우선, 없으면 텍스트.
if html != "" {
fm.Body = html
fm.IsHTML = true
} else {
fm.Body = plain
}
return fm, nil
}