Closed Bug 602595 Opened 14 years ago Closed 14 years ago

Fit the filename of an attachment to the attachment box's size

Categories

(Thunderbird :: Message Compose Window, enhancement)

x86
Windows 7
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 195702

People

(Reporter: dfghjkjhg, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.11) Gecko/20101001 Firefox/3.6.11
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.9) Gecko/20100915 Lightning/1.0b2 Thunderbird/3.1.4

Assume you have the following file:
"this_file_is_only_for_testing_purposes.txt".

If you attach this file to a compose window and the attachment box's size is not big enough to display the whole filename, the filename will be cut to e. g. "this_file_is_only_for_tes...".

Analogous to attachments in received mails, it would be better always to display the beginning and the end of the attachment's file name, e. g.
"this_file...oses.txt".
So you can always see the file extension (e. g. to make sure that you have attached the small .zip-file instead of the original big database .mdb).

The filename cutting should also be done flexible, i. e. if you expand the attachment box in the compose window, also show more of the filename, e. g.
"this_file_is_onl...ing_purposes.txt".

Reproducible: Always
I'm doing this as a part of bug 195702, so duping to that.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Thanks a lot for this :-)

PS:
When I look at the attached screenshot in Bug 559559
https://bug559559.bugzilla.mozilla.org/attachment.cgi?id=479946
I see that the file extensions are not always displayed.
Is there also a chance for you to always display the file extensions (in any message, i. e. composed, received etc.) ?
Or is this a new bug/feature request ?
Thanks.
That's not going to happen just yet. There are plans to change the interface for attachments (it's a bit of a mess and not keyboard-accessible), so things are likely to change anyway. It works out for the compose window though because the attachment sidebar is wider, so cropping in the middle (almost) always gets the full extension.
You need to log in before you can comment on or make changes to this bug.