Some subjects not modified

Leonardo Helman mailscanner at LISTS.COM.AR
Thu Dec 2 19:35:34 GMT 2004


Yes, this is my thread! only me :(

Here is the problem, my thread, my code, my bug. :)

This happens with zmailer. If I were you, I'd test it
a little with your MTA. (Maybe sendmail works a little
different, don't know)

The bug appears when you send a Subject:\n Anything

In ZMailer.pm code (it was cut&pasted from other MTAs by
me), so check your flavor.

The problem is with (in several subs):
  s/^$key\s+/$key $newvalue$sep/i;

There is no spaces after "Subject:\n" (the \n was chomped)
So the dirty fix is s/\\s\+/\\s*/g or something like that,
but I'm looking for a better way.

I'm fixing it now, and tomorrow I'll send a patch for this (ZMailer.pm)


Saludos
--
Leonardo Helman
Pert Consultores
Argentina


On Thu, Dec 02, 2004 at 12:01:10PM -0300, Leonardo Helman wrote:
> Hi, I've seen some subjects not tagged as spam.
> I've found a subject that fail every time I test it.
>
> The header is something like:
>
>
> Subject:
>  =?windows-1252?Q?Adultos:_El_manual_ORIGINAL_de_AGRANDAMIENTO_N=BA_1_en_el_mundo_con_VIDEOS!!!!!!?=
>
>
> That is: "Subject:" + \n + <space> + "=?windows-1252............="
>
> I make a mail with that subject and a gtube, and it gets tagged as
> spam, but not modified it's subject line.
>
> Can someone try this out?
>
> I can't see anything strange with the logs.
>
> Other subjects are tagged ok.
> If I send the same subject without the "\n" the subject is tagged just fine.
>
>
> Is this fixed in 4.36?
>
>
>
>
> MailScanner -V:
> (SpamAssassin is not missing..., I'm using 3.0.1)
>
> Running on
> Linux dedo 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown
> This is Red Hat Linux release 6.1 (Cartman)
> This is Perl version 5.008005 (5.8.5)
>
> This is MailScanner version 4.35.11
> Module versions are:
> 1.00    AnyDBM_File
> 1.14    Archive::Zip
> 1.03    Carp
> 1.119   Convert::BinHex
> 1.00    DirHandle
> 1.05    Fcntl
> 2.73    File::Basename
> 2.08    File::Copy
> 2.01    FileHandle
> 1.06    File::Path
> 0.14    File::Temp
> 1.27    HTML::Entities
> 3.36    HTML::Parser
> 2.28    HTML::TokeParser
> 1.21    IO
> 1.10    IO::File
> 1.123   IO::Pipe
> 3.05    MIME::Base64
> 5.415   MIME::Decoder
> 5.415   MIME::Decoder::UU
> 5.415   MIME::Head
> 5.415   MIME::Parser
> 3.03    MIME::QuotedPrint
> 5.415   MIME::Tools
> 0.10    Net::CIDR
> 1.08    POSIX
> 1.77    Socket
> 0.05    Sys::Syslog
> 1.02    Time::localtime
>
> Optional module versions are:
> 1.809   DB_File
> 1.08    Digest
> 1.01    Digest::HMAC
> 2.33    Digest::MD5
> 2.10    Digest::SHA1
> 0.44    Inline
> 0.13    Mail::ClamAV
> missing Mail::SpamAssassin
> 1.997   Mail::SPF::Query
> 0.15    Net::CIDR::Lite
> 0.48    Net::DNS
> missing Net::LDAP
> 1.94    Parse::RecDescent
> missing SAVI
> 1.2     Sys::Hostname::Long
> 2.42    Test::Harness
> 0.47    Test::Simple
> 1.95    Text::Balanced
> 1.35    URI
>
>
>
> Saludos
> --
> Leonardo Helman
> Pert Consultores
> Argentina
>
> ------------------------ MailScanner list ------------------------
> To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> 'leave mailscanner' in the body of the email.
> Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
> the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>
> Support MailScanner development - buy the book off the website!

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!
On Thu, Dec 02, 2004 at 12:01:10PM -0300, Leonardo Helman wrote:
> Hi, I've seen some subjects not tagged as spam.
> I've found a subject that fail every time I test it.
>
> The header is something like:
>
>
> Subject:
>  =?windows-1252?Q?Adultos:_El_manual_ORIGINAL_de_AGRANDAMIENTO_N=BA_1_en_el_mundo_con_VIDEOS!!!!!!?=
>
>
> That is: "Subject:" + \n + <space> + "=?windows-1252............="
>
> I make a mail with that subject and a gtube, and it gets tagged as
> spam, but not modified it's subject line.
>
> Can someone try this out?
>
> I can't see anything strange with the logs.
>
> Other subjects are tagged ok.
> If I send the same subject without the "\n" the subject is tagged just fine.
>
>
> Is this fixed in 4.36?
>
>
>
>
> MailScanner -V:
> (SpamAssassin is not missing..., I'm using 3.0.1)
>
> Running on
> Linux dedo 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown
> This is Red Hat Linux release 6.1 (Cartman)
> This is Perl version 5.008005 (5.8.5)
>
> This is MailScanner version 4.35.11
> Module versions are:
> 1.00    AnyDBM_File
> 1.14    Archive::Zip
> 1.03    Carp
> 1.119   Convert::BinHex
> 1.00    DirHandle
> 1.05    Fcntl
> 2.73    File::Basename
> 2.08    File::Copy
> 2.01    FileHandle
> 1.06    File::Path
> 0.14    File::Temp
> 1.27    HTML::Entities
> 3.36    HTML::Parser
> 2.28    HTML::TokeParser
> 1.21    IO
> 1.10    IO::File
> 1.123   IO::Pipe
> 3.05    MIME::Base64
> 5.415   MIME::Decoder
> 5.415   MIME::Decoder::UU
> 5.415   MIME::Head
> 5.415   MIME::Parser
> 3.03    MIME::QuotedPrint
> 5.415   MIME::Tools
> 0.10    Net::CIDR
> 1.08    POSIX
> 1.77    Socket
> 0.05    Sys::Syslog
> 1.02    Time::localtime
>
> Optional module versions are:
> 1.809   DB_File
> 1.08    Digest
> 1.01    Digest::HMAC
> 2.33    Digest::MD5
> 2.10    Digest::SHA1
> 0.44    Inline
> 0.13    Mail::ClamAV
> missing Mail::SpamAssassin
> 1.997   Mail::SPF::Query
> 0.15    Net::CIDR::Lite
> 0.48    Net::DNS
> missing Net::LDAP
> 1.94    Parse::RecDescent
> missing SAVI
> 1.2     Sys::Hostname::Long
> 2.42    Test::Harness
> 0.47    Test::Simple
> 1.95    Text::Balanced
> 1.35    URI
>
>
>
> Saludos
> --
> Leonardo Helman
> Pert Consultores
> Argentina
>
> ------------------------ MailScanner list ------------------------
> To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> 'leave mailscanner' in the body of the email.
> Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
> the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>
> Support MailScanner development - buy the book off the website!

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list