fix: use subject-independent identities for captured mail Wiki paths
Build and publish container images / images (push) Successful in 11m59s
Release container images / release (push) Successful in 25s

This commit is contained in:
Anya Tokugawa committed 2026-11-06 09:02:34 +09:00
1 parent 0b6343aff0
commit 3262f88005
7 files changed
+91 -11

No files matched your search

+3 -4
View File
@@ -34,11 +34,10 @@ func ValidTaskWikiPrefix(p string) bool {
return true
}
// A request UUID suffix separates equal subjects and makes the target stable.
// The CLI derives the request UUID from origin, user and Message-ID (or a raw
// mail hash). Keep subjects in the title, never in the URL's identity segment.
func TaskCaptureWikiPath(prefix, title, request string) string {
item := TaskRecord{Title: title, UUID: request}
name := path.Base(TaskNotePath("", TaskRecord{}, item))
return strings.TrimRight(prefix, "/") + "/" + name + "--" + request
return strings.TrimRight(prefix, "/") + "/mail-" + request
}
func (s *Store) createCapturedTaskWiki(ctx context.Context, tx *sql.Tx, domain, actor string, item *TaskRecord, target, body string) error {