Mailscanner errors

Mark Sapiro mark at msapiro.net
Wed Apr 27 04:42:47 UTC 2022


Mark Sapiro wrote:
> On 4/26/22 10:16, Sportsman Fishing Adventures wrote:
>> Hi all, this is my first post and for some reason after confirming my 
>> account I cannot login to the main page or archives to see if this has 
>> been discussed already so hopefully I am following protocols.
> 
> 
> This list's archive is at 
> http://lists.mailscanner.info/pipermail/mailscanner/ and doesn't require 
> login.
> 
> 
>> I just started seeing some errors in my mailscanner window after 
>> clicking the learn as spam button for emails.
>> 
>> Most times I see Learned tokens from 0 message(s) (0 message(s) 
>> examined) so I use the learn as spam and report button.
>> 
>> Now that process is showing me the following errors:
>> 
>> Apr 26 09:46:05.644 [22600] warn: Unquoted '"' not allowed at 
>> /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 
>> line 253.
>> Apr 26 09:46:05.644 [22600] warn: Missing semicolon before parameter 
>> '"KF94 INFANTILES - NI�A.jpg"' at 
>> /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 
>> line 253.
>> Apr 26 09:46:05.645 [22600] warn: Unquoted '"' not allowed at 
>> /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 
>> line 253.
>> Apr 26 09:46:05.645 [22600] warn: Missing semicolon before parameter 
>> '"KF94 INFANTILES NI�O.jpg"' at 
>> /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 
>> line 253.
>> Apr 26 09:46:05.646 [22600] warn: Unquoted '"' not allowed at 
>> /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 
>> line 253.
>> Apr 26 09:46:05.646 [22600] warn: Missing semicolon before parameter 
>> '"MASCARILLAS INFANTILES NI�A KN95.jpg"' at 
>> /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 
>> line 253.
>> Apr 26 09:46:05.646 [22600] warn: Unquoted '"' not allowed at 
>> /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 
>> line 253.
>> Apr 26 09:46:05.647 [22600] warn: Missing semicolon before parameter 
>> '"MASCARILLAS INFANTILES NI�O KN95.jpg"' at 
>> /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 
>> line 253.
>> Apr 26 09:46:05.647 [22600] warn: Unquoted '"' not allowed at 
>> /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 
>> line 253.
>> Apr 26 09:46:05.647 [22600] warn: Missing semicolon before parameter 
>> '"MASCARILLAS INFANTILES QUIRURGICAS NI�A.jpg"' at 
>> /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 
>> line 253.
>> Apr 26 09:46:05.648 [22600] warn: Unquoted '"' not allowed at 
>> /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 
>> line 253.
>> Apr 26 09:46:05.648 [22600] warn: Missing semicolon before parameter 
>> '"MASCARILLAS INFANTILES QUIRURGICAS NI�O.jpg"' at 
>> /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 
>> line 253.
>> 
>> 
>> Can anyone tell me what this means and if I have an issue with my cPanel 
>> configuration (which I personally haven't touched).
> 
> Can you post the raw message that produces this error? It appears that 
> the message has invalid Content-Disposition: and/or Content-Type: headers.


I received the message off list. There is nothing wrong with the message 
per se. The message has several image/jpeg parts. Some of these parts 
have RFC 2047 encoded name= and filename= parameters. The first such 
part has headers

Content-Type: image/jpeg; 
name="=?UTF-8?Q?KF94_INFANTILES_=2D_NI=C3=91A=2Ejpg?="
Content-Disposition: inline; 
filename="=?UTF-8?Q?KF94_INFANTILES_=2D_NI=C3=91A=2Ejpg?="

which decode to

Content-Type: image/jpeg; name=" KF94 INFANTILES - NIÑA.jpg "
Content-Disposition: inline; filename=" KF94 INFANTILES - NIÑA.jpg "

These are valid headers, but are apparently responsible for the

 >> Apr 26 09:46:05.644 [22600] warn: Unquoted '"' not allowed at
 >> 
/usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 

 >> line 253.
 >> Apr 26 09:46:05.644 [22600] warn: Missing semicolon before parameter
 >> '"KF94 INFANTILES - NI�A.jpg"' at
 >> 
/usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Mail/Pyzor/Digest/Pieces.pm 

 >> line 253.

There are other parts with RFC 2047 encoded headers:

Content-Type: image/jpeg; name="=?UTF-8?Q?KF94_INFANTILES_NI=C3=91O=2Ejpg?="
Content-Disposition: inline; 
filename="=?UTF-8?Q?KF94_INFANTILES_NI=C3=91O=2Ejpg?="

Content-Type: image/jpeg; 
name="=?UTF-8?Q?MASCARILLAS_INFANTILES_NI=C3=91A_KN95?=
	=?UTF-8?Q?=2Ejpg?="
Content-Disposition: inline;
	filename="=?UTF-8?Q?MASCARILLAS_INFANTILES_NI=C3=91A_KN95=2Ejpg?="

Content-Type: image/jpeg; 
name="=?UTF-8?Q?MASCARILLAS_INFANTILES_NI=C3=91O_KN95?=
	=?UTF-8?Q?=2Ejpg?="
Content-Disposition: inline;
	filename="=?UTF-8?Q?MASCARILLAS_INFANTILES_NI=C3=91O_KN95=2Ejpg?="

Content-Type: image/jpeg;
	name="=?UTF-8?Q?MASCARILLAS_INFANTILES_QUIRURGICAS_NI=C3=91A=2Ejpg?="
Content-Disposition: inline;
	filename="=?UTF-8?Q?MASCARILLAS_INFANTILES_QUIRURGICAS_NI=C3=91A=2Ejpg?="

Content-Type: image/jpeg;
	name="=?UTF-8?Q?MASCARILLAS_INFANTILES_QUIRURGICAS_NI=C3=91O=2Ejpg?="
Content-Disposition: inline;
	filename="=?UTF-8?Q?MASCARILLAS_INFANTILES_QUIRURGICAS_NI=C3=91O=2Ejpg?="

which decode to:

Content-Type: image/jpeg; name=" KF94 INFANTILES NIÑO.jpg "
Content-Disposition: inline; filename=" KF94 INFANTILES NIÑO.jpg "

Content-Type: image/jpeg; name=" MASCARILLAS INFANTILES NIÑA KN95.jpg "
Content-Disposition: inline;  filename=" MASCARILLAS INFANTILES NIÑA 
KN95.jpg "

Content-Type: image/jpeg; name=" MASCARILLAS INFANTILES NIÑO KN95.jpg "
Content-Disposition: inline;  filename=" MASCARILLAS INFANTILES NIÑO 
KN95.jpg "

Content-Type: image/jpeg;  name=" MASCARILLAS INFANTILES QUIRURGICAS 
NIÑA.jpg "
Content-Disposition: inline;  filename=" MASCARILLAS INFANTILES 
QUIRURGICAS NIÑA.jpg "

Content-Type: image/jpeg;  name=" MASCARILLAS INFANTILES QUIRURGICAS 
NIÑO.jpg "
Content-Disposition: inline;  filename=" MASCARILLAS INFANTILES 
QUIRURGICAS NIÑO.jpg "

And are responsible for the rest of the above messages.

This would seem to be a bug in the perl Mail::Pyzor::Digest module.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the MailScanner mailing list