[Rspamd-Users] Read options from symbol in lua
J. Fahrner
jf at fahrner.name
Wed Sep 26 06:30:47 UTC 2018
Hi,
I'm trying to read the mail address from HAS_REPLYTO symbol with the
following code:
-------
local rt = task:get_symbol('HAS_REPLYTO')
local mail_from = task:get_from()
if (rt) then
task:insert_result('XYZ', 1.0, rt['options'][1])
end
if (rt and rt['options'][1] ~= mail_from)
then
...
------
But this does not work. As I can see in Symbol XYZ, the mail address is
empty.
Any ideas why this does not work?
Jochen
More information about the Users
mailing list