fix(mail): remove redundant TrimSpace in parseReferences

strings.Fields already strips whitespace from each token.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-28 05:04:45 +07:00
co-authored by Claude Opus 4.7
parent c63895f4da
commit 15e697ddf3
-3
View File
@@ -309,9 +309,6 @@ func parseReferences(header string) []string {
return nil
}
raw := strings.Fields(header)
for i := range raw {
raw[i] = strings.TrimSpace(raw[i])
}
// Reverse: last (most recent) first.
for i, j := 0, len(raw)-1; i < j; i, j = i+1, j-1 {
raw[i], raw[j] = raw[j], raw[i]