Mailing List Archive

SA 3.4.3 and mimeheader check
Hello,
it looks something changed in mimeheader check. After upgrade to 3.4.3
this rule throws error:

warn: config: SpamAssassin failed to parse line, "__LRM_BAD_ZIPSRULE
Content-Type:raw =~
/^application\/zip;.*xls\s\.zip|^application/zip;.*\.zip\"/" is not
valid for "mimeheader", skipping: mimeheader __LRM_BAD_ZIPSRULE
Content-Type:raw =~
/^application\/zip;.*xls\s\.zip|^application/zip;.*\.zip\"/

What changed in the way how mimeheader works?

Marcin
Re: SA 3.4.3 and mimeheader check [ In reply to ]
On Sat, 28 Dec 2019 20:06:04 +0100
Marcin Miros?aw wrote:

> Hello,
> it looks something changed in mimeheader check. After upgrade to 3.4.3
> this rule throws error:
>
> warn: config: SpamAssassin failed to parse line, "__LRM_BAD_ZIPSRULE
> Content-Type:raw =~
> /^application\/zip;.*xls\s\.zip|^application/zip;.*\.zip\"/" is not
> valid for "mimeheader", skipping: mimeheader __LRM_BAD_ZIPSRULE
> Content-Type:raw =~
> /^application\/zip;.*xls\s\.zip|^application/zip;.*\.zip\"/
>
> What changed in the way how mimeheader works?

It has better validation. You are missing a backslash in
"^application/zip".
Re: SA 3.4.3 and mimeheader check [ In reply to ]
W dniu 2019-12-28 o?21:07, RW pisze:
> On Sat, 28 Dec 2019 20:06:04 +0100
> Marcin Miros?aw wrote:
>
>> Hello,
>> it looks something changed in mimeheader check. After upgrade to 3.4.3
>> this rule throws error:
>>
>> warn: config: SpamAssassin failed to parse line, "__LRM_BAD_ZIPSRULE
>> Content-Type:raw =~
>> /^application\/zip;.*xls\s\.zip|^application/zip;.*\.zip\"/" is not
>> valid for "mimeheader", skipping: mimeheader __LRM_BAD_ZIPSRULE
>> Content-Type:raw =~
>> /^application\/zip;.*xls\s\.zip|^application/zip;.*\.zip\"/
>>
>> What changed in the way how mimeheader works?
>
> It has better validation. You are missing a backslash in
> "^application/zip".
>

Indeed, thank you!