[rt-users] attachment names problem
    Dmitriy Yermakov 
    dyer at segmenta.ru
       
    Fri Aug 18 03:09:47 EDT 2006
    
    
  
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
                                                                          
    
    
More information about the rt-users
mailing list