Mailing List Archive

[Bug 7740] New: Cannot set OLEMacro regex options
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7740

Bug ID: 7740
Summary: Cannot set OLEMacro regex options
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Plugins
Assignee: dev@spamassassin.apache.org
Reporter: marcel.evenson@gmail.com
Target Milestone: Undefined

In my SpamAssassin Config:


> ifplugin Mail::SpamAssassin::Plugin::OLEMacro
> olemacro_max_file 512000
> olemacro_num_mime 5
> olemacro_num_zip 5
> olemacro_zip_depth 2
> olemacro_extended_scan 0
> olemacro_exts (?:doc|docx|dot|pot|ppa|pps|ppt|rtf|sldm|xl|xla|xls|xlsx|xlt|xslb)$
> olemacro_macro_exts (?:docm|dotm|ppam|potm|ppst|ppsm|pptm|sldm|xlm|xlam|xlsb|xlsm|xltm|xps)$
> olemacro_zips (?:zip)$
> olemacro_skip_exts (?:dotx|potx|ppsx|pptx|sldx|xltx)$
> olemacro_skip_ctypes ^(?:(audio|image|text)\/|application\/(?:pdf))
> olemacro_prefer_contentdisposition 1
> endif

Running spamassassin ---lint I get these errors:
> Jul 21 05:55:07.773 [15957] warn: config: SpamAssassin failed to parse line, "(?:doc|docx|dot|pot|ppa|pps|ppt|rtf|sldm|xl|xla|xls|xlsx|xlt|xslb)$" is not valid for "olemacro_exts", skipping: olemacro_exts (?:doc|docx|dot|pot|ppa|pps|ppt|rtf|sldm|xl|xla|xls|xlsx|xlt|xslb)$
> Jul 21 05:55:07.773 [15957] warn: config: SpamAssassin failed to parse line, "(?:docm|dotm|ppam|potm|ppst|ppsm|pptm|sldm|xlm|xlam|xlsb|xlsm|xltm|xps)$" is not valid for "olemacro_macro_exts", skipping: olemacro_macro_exts (?:docm|dotm|ppam|potm|ppst|ppsm|pptm|sldm|xlm|xlam|xlsb|xlsm|xltm|xps)$
> Jul 21 05:55:07.774 [15957] warn: config: SpamAssassin failed to parse line, "(?:zip)$" is not valid for "olemacro_zips", skipping: olemacro_zips (?:zip)$
> Jul 21 05:55:07.774 [15957] warn: config: SpamAssassin failed to parse line, "(?:dotx|potx|ppsx|pptx|sldx|xltx)$" is not valid for "olemacro_skip_exts", skipping: olemacro_skip_exts (?:dotx|potx|ppsx|pptx|sldx|xltx)$
> Jul 21 05:55:07.774 [15957] warn: config: SpamAssassin failed to parse line, "^(?:(audio|image|text)\/|application\/(?:pdf))" is not valid for "olemacro_skip_ctypes", skipping: olemacro_skip_ctypes ^(?:(audio|image|text)\/|application\/(?:pdf))

This seems to be a duplicate of this bug that was fixed in the
spamassassin-olemacro repo but wasn't carried over when it was included in
SpamAssassin:

https://github.com/fmbla/spamassassin-olemacro/issues/1

I'm sure that wrapping the regex check in regex delimiters like '/'.$value.'/'
would likely fix it too.


My setup:
# spamassassin -V
SpamAssassin version 3.4.3-rc3 running on Perl version 5.16.3

--
You are receiving this mail because:
You are the assignee for the bug.