[Rspamd-Users] I need your help with a LUA script for RSPAMD
G.W. Haywood
rspamd at jubileegroup.co.uk
Mon Feb 17 15:41:00 UTC 2025
Hi there,
On Mon, 17 Feb 2025, christian via Users wrote:
> ... can you please help me with a LUA script. ...
Perhaps a little, but I'm not prepared to debug it for you.
AFAICT there is exactly one place in your script where the problem occurs.
This is controlled by a conditional (if) statement and a 'for' loop statement.
Apparently these two statements don't do quite what you want them to do.
I think you need to put more logging around those statements to find out why.
I suggest that you log the values of all the variables which are used in the
if/for statements to see if they resemble what you expect.
As for the 'jumbled manner' of the output file, I'm *guessing* that you
have parallel processes writing to the output file but without locking
to prevent them writing simultaneously to the same file. Sometimes it
doesn't matter, and you can get away with this; sometimes it matters.
I'd be inclined to write more to the output file than you are writing
at the moment, to identify the process(es) writing the data, even if it
means that you can't actually use the file in the way that you want to.
Or perhaps you could write a separate file with the same information as
'verified_recipients_file' but with additional information about the
process(es) which write it.
--
73,
Ged.
More information about the Users
mailing list