]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Rework] Lua API: make the 'orig' address flavour return wire addresses
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 16 Jul 2026 09:02:08 +0000 (10:02 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 16 Jul 2026 09:02:08 +0000 (10:02 +0100)
commita7cbff9840f5488cbe41566aedd66e4ef162b3ae
treeddb6f63c38b07ba231304f88adfa2b9b3ee8792b
parent9fe6cb2aa05043890aea8f60eb18e28fce5ae622
[Rework] Lua API: make the 'orig' address flavour return wire addresses

Previously task:get_from({'mime', 'orig'}) returned both the preserved
original addresses and the rewritten ones appended by task:set_from,
making the flavour unusable for consumers that need the message as it
arrived (a duplicate-From check would misfire on the combined list, and
Lua could not tell the entries apart). Now, when the 'orig' flavour is
requested and originals were preserved by a rewrite, only the original
addresses are returned; without a rewrite the behaviour is unchanged.

Also expose the 'aliased' and 'original' email address flags to Lua and
document the flavour.
src/lua/lua_task.c