Fix for K3.0 : Long file names are not trimmed for attachments #2547