Attachments with long Cyrillic/Russian names get name broken
Sergey
mailscanner.info at sm.msk.ru
Mon Apr 13 17:59:23 IST 2009
Hi all,
Got a problem.
We are using Mailscanner as a filter of incoming mail.
Part of that mail is in Russian and what is worse, it happens
to have attachments named in Russian as well.
When passing the Mailscanner such names get re-encoded to sometimes
like that (`quoted-printable form'?) :
Итак, она звалась Татьяной. Ни красотой сестр =?koi8-r?B?2SDT18/Fyiwg7skg09fFLnJhcg==
or
=windows-1251Q=C8=F2=E0=EA=2C_=EE=ED=E0_=E7=E2=E0=EB=E0=F1=FC_=D2=E0=F2=FC=FF=ED=EE=E9=2E_=CD=E8
(Yes, first is a KOI-8 and the second CP1251 encoding)
Any name gets broken that way if it is longer than 63 characters
This seems to be an effect of Mailscanner, as both MS Exchange/Outlook
and Sendmail were tested separately and both pass such attachments transparently.
The problem is, an end-user receives an attachment without extension and has no
clue how to open it.
On the other hand, it is common enough to name files by long names among the
users.
I have not found anything addressing that effect in the archives (Are we first
Russian-speaking people who use Mailscanner?)
Could please anybody tell where to dig?
The packages used are:
MailScanner-perl-MIME-Base64-3.05-5
mailscanner-4.74.16-1
Perl is v5.8.8 built for x86_64-linux-thread-multi
OS: openSUSE 10.2 (X86-64)
Thank you in advance,
--
Best regards,
Sergey mailto:mailscanner.info at sm.msk.ru
More information about the MailScanner
mailing list