Bug 8137 - FileExtensionMismatch plugin
Summary: FileExtensionMismatch plugin
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Plugins (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: PC Linux
: P2 normal
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-30 15:35 UTC by Giovanni Bechis
Modified: 2023-05-31 13:16 UTC (History)
1 user (show)



Attachment Type Modified Status Actions Submitter/CLA Status
FileExtensionMismatch plugin patch None Giovanni Bechis [HasCLA]
Update patch after refactor patch None Giovanni Bechis [HasCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Giovanni Bechis 2023-05-30 15:35:42 UTC
Created attachment 5888 [details]
FileExtensionMismatch plugin

FileExtensionMismatch plugin verifies if the extension of an attachment matches the MIME type declared on email headers.
The plugin can use File::libMagic or MIME::Type Perl modules.

There is also some code refactoring in order to share some code with OLEVBMacro plugin.
Comment 1 Giovanni Bechis 2023-05-31 13:16:45 UTC
Created attachment 5889 [details]
Update patch after refactor