Attachment names problem

Hija
I think that I have an “old attachment problem” on my RT (3.4.4 - debian
stable apt-get)
All attachement’s names which contains iso-8859-2 or cp1250 characters are
shown as “download untitled”

below part of a mail header
------=_20060815221957_41440
Content-Type: text/plain; charset="iso-8859-2"
Content-Transfer-Encoding: 8bit

asd
------=20060815221957_41440
Content-Type: application/vnd.oasis.opendocument.text; name="
=?iso-8859-2?Q?=B1=B6
=F3=B3_p=EAw.odt?=“
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=”
=?iso-8859-2?Q?=B1=B6_=F3=B3_p=EAw.odt?="

Mail is properly recognized by KMail and Thunderbird

any suggestions ?

regards
Marcin

any ideas ?

Jesse :slight_smile: ?

Marcin Bujak wrote:

any ideas ?

try change

my $Filename = $Attachment->head->recommended_filename || eval {

${ $Attachment->head->{mail_hdr_hash}{‘Content-Disposition’}[0] }

=~ /^.\bfilename="(.)"$/ ? $1 : ‘’

};

 my $ContentDisposition = eval { ${

$Attachment->head->{mail_hdr_hash}{‘Content-Disposition’}[0]} };
my $Filename = eval { $ContentDisposition =~
/^.\bfilename="(.)"$/ ? $1 : ‘’ } ||
eval { $ContentDisposition =~ /^."(.)"$/ ? $1 : ‘’ };

on $RTHOME/lib/RT/Attachment_Overlay.pm
or custom file on $RTHOME/local/lib/RT/Attachment_Overlay.pm

For me it working with russian attach filenames perfectly.

Dmitriy Yermakov

Hello, Marcin.

Please, try attached patch.

  1. cd /opt/rt3
  2. cat mime_headers_decoding.patch | patch -p0
  3. server stop
  4. server start
  5. send message with attachment
  6. check that filename is correct in web ui
  7. send feedback :slight_smile:

Dmitriy, you could try it too instead of your patch.On 8/17/06, Marcin Bujak marcin.bujak@openetworks.pl wrote:

any ideas ?

Jesse :slight_smile: ?


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Best regards, Ruslan.

mime_headers_decoding.patch (409 Bytes)

its working !!!

thanks a lot

Marcin