[Rspamd-Users] What's wrong with this?
G.W. Haywood
rspamd at jubileegroup.co.uk
Wed Feb 8 23:23:25 UTC 2023
Hi there,
On Wed, 8 Feb 2023, Steve Witten wrote:
> I got it to compile by making it look like this:
>
> rspamd_config.HTML_MESSAGE = {
>> callback = function(task)
>> local parts = task:get_text_parts()
>> if parts then
>> for i,p in ipairs(parts) do
>> if p:is_html() then
>> return true
>> end end end
>> return false end,
>> score = -0.1,
>> description = 'HTML included in message'
>> }
>
>
> Is there some option on the lua interpreter to allow gratuitous newlines?
https://en.wikibooks.org/wiki/Lua_Programming/whitespace#Line_Breaks_and_Indentation
There must be more to this than meets the eye. Experiment?
--
73,
Ged.
More information about the Users
mailing list