Open Bug 480736 Opened 17 years ago Updated 2 months ago

copy and paste clipboard file as attachment

Categories

(MailNews Core :: Composition, enhancement, P3)

enhancement
Points:
5

Tracking

(thunderbird_esr153 wontfix)

Tracking Status
thunderbird_esr153 --- wontfix

People

(Reporter: wd5hyq, Assigned: aleca)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081204 SeaMonkey/1.1.14 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081204 SeaMonkey/1.1.14 It would be nice to be able to copy a file from the computer using <ctrl> C and then be able to paste it into the attachment window of a newly created email. Currently you can browse to the files location and attach it to the email, or you can drag a file from another window into the attachment area and get it included in the email, but you can't copy and paste a file into the attachment section. Reproducible: Always Steps to Reproduce: 1.copy a file to the clipboard 2.create a new email 3.attempt to paste the file to the email as an attachment
Think a rfe for mailnews.
Severity: normal → enhancement
Component: Download & File Handling → MailNews: General
OS: Windows XP → All
QA Contact: download → mail
Hardware: x86 → All
Version: unspecified → Trunk
Component: MailNews: General → Composition
Product: SeaMonkey → MailNews Core
QA Contact: mail → composition
This may be covered by bug 379186 or bug 335783, though those are more about the content of what is on the clipboard than a file.
Confirming RFE.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: copy and paste an attachment file → copy and paste clipboard file as attachment
Would be great if pasting a FILE from the clipboard would also work by using the SHORTCUT "Ctrl+V" within the composing window (text area and/or attachment area). Currently pasting a file into the text area with Ctrl+V looks as follows: file:///C:/TEMP/Test.doc instead of getting a real attached file Test.doc

iirc, you are planning to do this in another bug?

Flags: needinfo?(alessandro)

I didn't open the bug yet, so I guess I can take this one.

Flags: needinfo?(alessandro)
Assignee: nobody → alessandro
Severity: normal → S3

All right, here's the plan for this.

  • Detect if the paste action has only files and no text.
  • Handle only files for now, ignore images.
  • If the pasted files are part of the supported list of files, handle them as attachments.
  • Otherwise show an error notification to the user.

I'm gonna use the occasion to extract some methods from the massive MsgComposeCommands.js file and make them reusable modules so we start defining some consistency in how we handle attachments.

Points: --- → 5
Priority: -- → P3
No longer blocks: tb-maintenance-2026-q3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: