Bug 7863 - Suggest rule to score messages with attachments
Summary: Suggest rule to score messages with attachments
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Rules (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-23 11:54 UTC by ricardo.matos
Modified: 2020-10-23 12:04 UTC (History)
1 user (show)



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description ricardo.matos 2020-10-23 11:54:20 UTC

    
Comment 1 ricardo.matos 2020-10-23 12:04:32 UTC

ifplugin Mail::SpamAssassin::Plugin::MIMEHeader

mimeheader __MIMEHEADER_CONTENTTYPE_ATTACHMENT_DOC Content-Type =~ /\.(doc|xls|ppt)(x|)/i
mimeheader __MIMEHEADER_CONTENTDISP_ATTACHMENT_DOC Content-Disposition =~ /\.(doc|xls|ppt)(x|)/i

meta MIMEHEADER_ATTACHMENT_DOC ((__MIMEHEADER_CONTENTDISP_ATTACHMENT_DOC || __MIMEHEADER_CONTENTTYPE_ATTACHMENT_DOC) && !(ALL_TRUSTED))
describe MIMEHEADER_ATTACHMENT_DOC HEADER: email contains a DOC file attachment
score MIMEHEADER_ATTACHMENT_DOC 1.5

mimeheader __MIMEHEADER_CONTENTTYPE_ATTACHMENT_ARCH Content-Type =~ /\.(rar|zip|tar|img)/i
mimeheader __MIMEHEADER_CONTENTDISP_ATTACHMENT_ARCH Content-Disposition =~ /\.(rar|zip|tar|img)/i

mimeheader __MIMEHEADER_CONTENTDISP_ANY Content-Disposition =~ /./i

meta MIMEHEADER_ATTACHMENT_ARCH ((__MIMEHEADER_CONTENTDISP_ATTACHMENT_ARCH || __MIMEHEADER_CONTENTTYPE_ATTACHMENT_ARCH) && !ALL_TRUSTED)
describe MIMEHEADER_ATTACHMENT_ARCH HEADER: email contains an archive file attachment
score MIMEHEADER_ATTACHMENT_ARCH 0.1

mimeheader __MIMEHEADER_CONTENTTYPE_ATTACHMENT_HTML Content-Type =~ /\.htm(l|)/i

mimeheader __MIMEHEADER_CONTENTDISP_ATTACHMENT_HTML Content-Disposition =~ /\.htm(l|)/i

meta MIMEHEADER_ATTACHMENT_HTML (__MIMEHEADER_CONTENTDISP_ATTACHMENT_HTML || __MIMEHEADER_CONTENTTYPE_ATTACHMENT_HTML)
describe MIMEHEADER_ATTACHMENT_HTML HEADER: email contains a HTML file attachment
score MIMEHEADER_ATTACHMENT_HTML 1.0

mimeheader __MIMEHEADER_CONTENTTYPE_ATTACHMENT_JAR Content-Type =~ /application.*\.(jar|js|bat|exe|com|sh|vb|vbs|pif)"/i

mimeheader __MIMEHEADER_CONTENTDISP_ATTACHMENT_JAR Content-Disposition =~ /\.(jar|js|bat|exe|com|sh|vb|vbs|pif)"/i

meta MIMEHEADER_ATTACHMENT_JAR (__MIMEHEADER_CONTENTDISP_ATTACHMENT_JAR || __MIMEHEADER_CONTENTTYPE_ATTACHMENT_JAR)
describe MIMEHEADER_ATTACHMENT_JAR HEADER: email contains a JAR (or other executable) file attachment
score MIMEHEADER_ATTACHMENT_JAR 2.0

endif