Mailing List Archive

requires explicit package name
Hi,

on some older systems I see the following sa-update error since today

----
Possible unintended interpolation of @g in string at
/tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1506,
line 1.
Possible unintended interpolation of @mail in string at
/tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1509,
line 1.
Possible unintended interpolation of @leadstips in string at
/tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1500,
line 1.
Possible unintended interpolation of @amazonshoppings in string at
/tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1511,
line 1.
rules: failed to compile
Mail::SpamAssassin::Plugin::Check::_head_tests_0_6, skipping:
(Global symbol "@g" requires explicit package name at
/tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1506,
line 1.
Global symbol "@mail" requires explicit package name at
/tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1509,
line 1.
Global symbol "@leadstips" requires explicit package name at
/tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1500,
line 1.
Global symbol "@amazonshoppings" requires explicit package name at
/tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1511,
line 1.)
channel: lint check of update failed, channel failed
sa-update failed for unknown reasons
----

Ciao
Marcus
Re: requires explicit package name [ In reply to ]
Hi,

Am Dienstag, den 09.02.2021, 19:11 +0100 schrieb Marcus Schopen:
> Hi,
>
> on some older systems I see the following sa-update error since today
>
> ----
> Possible unintended interpolation of @g in string at
> /tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1506,
> line 1.
> Possible unintended interpolation of @mail in string at
> /tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1509,
> line 1.
> Possible unintended interpolation of @leadstips in string at
> /tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1500,
> line 1.
> Possible unintended interpolation of @amazonshoppings in string at
> /tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1511,
> line 1.
> rules: failed to compile
> Mail::SpamAssassin::Plugin::Check::_head_tests_0_6, skipping:
> (Global symbol "@g" requires explicit package name at
> /tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1506,
> line 1.
> Global symbol "@mail" requires explicit package name at
> /tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1509,
> line 1.
> Global symbol "@leadstips" requires explicit package name at
> /tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1500,
> line 1.
> Global symbol "@amazonshoppings" requires explicit package name at
> /tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1511,
> line 1.)
> channel: lint check of update failed, channel failed
> sa-update failed for unknown reasons
> ----

Sorry, these rules do not come from spamassassin.org.

Ciao!
Marcus
Re: requires explicit package name [ In reply to ]
On Tue, 9 Feb 2021, Marcus Schopen wrote:

> Possible unintended interpolation of @g in string at
> /tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1506,
> line 1.
> Possible unintended interpolation of @mail in string at
> /tmp/.spamassassin7185HJuhWPtmp/70_HS_header.cf, rule HS_HEADER_1509,
> line 1.

Make sure that if you have rules containing @sometext, the @ is escaped:

\@sometext
\@g
\@mail

...etc

--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
Holy smokes! We goofed again -
The brew was not quite right... -- KMFDM
-----------------------------------------------------------------------
3 days until Abraham Lincoln's and Charles Darwin's 212th Birthdays