Closed Bug 245331 Opened 20 years ago Closed 20 years ago

truncatting long filename of attachment

Categories

(MailNews Core :: Attachments, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: koruno, Assigned: Bienvenu)

Details

(Keywords: fixed-aviary1.0)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113

This is a part of sample letter with attachment.
Base64-encoded filename is splitted in 2 lines.
In FileSave dialog (and not only) we see only first part of filename, which is
encoded in first line...

Content-Type: application/msword;
name==?koi8-r?B?9yDP087P18Ug1MXIzs/Mz8fJySDMxdbJ1CDIz9LP288gydrXxdPUztnKINrB?=
  =?koi8-r?B?y8/OINDP18XSyM7P09TOz8fPIM7B1NHWxc7J0SDWycTLz9PUyS5kb2M=?=
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename==?koi8-r?B?9yDP087P18Ug1MXIzs/Mz8fJySDMxdbJ1CDIz9LP288gydrXxdPUztnKINrB?=
  =?koi8-r?B?y8/OINDP18XSyM7P09TOz8fPIM7B1NHWxc7J0SDWycTLz9PUyS5kb2M=?=


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
See also bug 186974, bug 80220, and bug 112162.
Could this one be related?
(In reply to comment #1)
> See also bug 186974, bug 80220, and bug 112162.
> Could this one be related?

May be the first bug (186974) have the same source...
Can you attach the file to this bug report ? And what is the filename ? 
Attached patch proposed fixSplinter Review
make the minimum size 15, but don't set a max - this will show large attachment
names in full, which I think is worth the potential unrulyness of the
attachment area when you have attachments with different length names.
Assignee: sspitzer → bienvenu
Status: UNCONFIRMED → ASSIGNED
Attachment #156935 - Flags: superreview?(mscott)
actually this looks better than I thought it would for attachments with
different sizes. It looks like we end up making all of them the same width (just
the widest width of the longest attachment name).

Only problem I see so far is when your message has a horizontal scrollbar as
well, clicking on these attachments is causing the message pane area to jiggle
back and forth. I'm not sure why yet. 
actually the jiggling effect is only present when you have a horizontal
scrollbar inside the message pane box. 

vertical scrollbars do not cause any jiggling with this patch
I can now reproduce the jiggling effect even without David's patch just by
making the message pane narrower. It just happens that you'll notice it more
since we aren't constraining the width of the attachment name anymore. 
Attachment #156935 - Flags: superreview?(mscott) → superreview+
I checked this into the branch and the trunk for both the default theme and
pinstripe for OS X. 
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Keywords: fixed-aviary1.0
Resolution: --- → FIXED
mscott, my (unfinished) patch for bug 9942 may influence or fix the jiggling,
havn't tried it.
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: