]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Feature] Sync UUID v7 random portion with Log-Tag header
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 14 Feb 2026 19:17:22 +0000 (19:17 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 14 Feb 2026 19:17:22 +0000 (19:17 +0000)
commited3e0a8b0ce6c5ef4c3f3a7e623bdedc9ee1172b
tree1a2757fa543124485e6c23707dc55e0ef37d8085
parentd3d672f2e73c936966cb9bad31927e2247a515d8
[Feature] Sync UUID v7 random portion with Log-Tag header

When an MTA provides a Log-Tag header that overrides the pool UID,
patch the task UUID's random portion (bytes 8-15) to stay in sync.
Uses a fast hash of the tag to derive the bytes while preserving
the UUID v7 variant bits.
src/libserver/protocol.c
src/libutil/util.c
src/libutil/util.h