> "The last line of a map *must* have a newline symbol at the end." = What
> exactly does that mean? A carriage return? or something like /n ?
>
> Because the content.map worked when I added multiple entries and a blank
> line at the bottom.
> /\btest\b/i
> /\btest2\b/i
> (blank line)
One of the developers might give you a more concrete answer, but as I
understood it you simply need to add a blank line at the end.
> Also, how would I add an embeded comment?
> The example shows: key2 # Embedded comment
> So the above would be:
> /\btest\b/i # Test
> /\btest2\b/i # Test2
> (blank line)
> I tried that and when rejected it only shows the: symbol = "REJECT_CONTENT";
> I assumed this meant the embedded comment would be listed in the logs with
> the REJECTED_CONTENT line, no?
Those comments can be seen as inline notes. If you need to score
different depending on the regexp (but keep everything in one map) you
can use 'multiple symbol maps'.
https://rspamd.com/doc/modules/multimap.html#multiple-symbol-maps
--
Alex JOST