I’ve checked and as in the plugin,

  foreach my $part ($pms->{msg}->find_parts(qr/./, 1)) {

does find each attachment, including the ones without Content-Type header – the 
method below can be used on these parts found regardless of lack of Content-Type

Paul

From: Pedro David Marco <pedrod_ma...@yahoo.com>
Reply-To: Pedro David Marco <pedrod_ma...@yahoo.com>
Date: Wednesday, 16 August 2017 at 23:49
To: Paul Stead <paul.st...@zeninternet.co.uk>, "users@spamassassin.apache.org" 
<users@spamassassin.apache.org>
Subject: Re: Attachments with no Content-Type mime header

Thanks Paul,

but your plugin uses find_parts() that turns it pointless if there is no 
Content-Type mime header...


--------
PedroD


>The magic number or file signature can be helpful in determining the filetype:

>https://en.wikipedia.org/wiki/List_of_file_signatures

>I make use of this in the OLEMacro plugin: 
>https://github.com/fmbla/spamassassin-olemacro/

>Paul Stead

--
Paul Stead
Systems Engineer
Zen Internet

Reply via email to