Open Bug 16956 Opened 25 years ago Updated 2 years ago

Insert Text File

Categories

(MailNews Core :: Composition, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: CodeMachine, Unassigned)

References

Details

(Keywords: helpwanted)

It would be very useful to be able to insert a text file at the cursor point.
It would be nice if it detected non-text files and refused to insert them.
Beth or Steve, do you think this is an editor issue?
It could go either way.  The editor knows how to insert data types off the
clipboard, so it shouldn't be a big leap to get those same data types out of a
file.  The tricky part is knowing what data type you have in a file.  I think
the parser can help us out here. Rick?

We had talked about making this a feature of the editor, but cut it due to time
constraints.

The embedding application, or course, can always provide this feature on top of
the editor regardless of whether the editor provides "InsertContentFromFile()."
We should probably add this method to our API, mark it as unimplemented, and get
to it when we can.

So I'll leave this bug for you, Phil, to decide if you want to implement this
feature on top of the existing editor APIs.  That means the mail app would have
to provide UI, get the file content, determine the data type, and call the
appropriate nsIHTMLEditor API.  cc'ing Akkana so she can tell us if I'm way out
in left field.
The editor and editor shell have methods to insert text and html, so it's no
problem to do that -- just read in the file contents, do some sort of switching
based on the filename or other knowledge of the file's mime type, and insert it
via the standard editor commands.  So it could be done in JS (assuming there's a
way to read the contents of a file from JS) or in C++.

I'd love to see a menu item to do this, both in the editor and in mail compose.
QA Contact: lchiang → pmock
changing QA assigned to myself
Assignee: phil → nobody
Summary: Insert Text File → [HELP WANTED] Insert Text File
Whiteboard: [HELP WANTED]
Add to the help wanted list.
Keywords: helpwanted
Summary: [HELP WANTED] Insert Text File → Insert Text File
Whiteboard: [HELP WANTED]
Keywords: mozilla1.2
removing myself from the cc list
*** Bug 120695 has been marked as a duplicate of this bug. ***
reassign to module owner to get back on radar
Assignee: nobody → ducarroz
Component: Mail Window Front End → Composition
QA Contact: pmock → esther
reassign to varada.
Assignee: ducarroz → varada
taking all of varada's bugs.
Assignee: varada → sspitzer
*** Bug 91102 has been marked as a duplicate of this bug. ***
*** Bug 210555 has been marked as a duplicate of this bug. ***
*** Bug 195859 has been marked as a duplicate of this bug. ***
This bug seems to be somewhat stale... I would like to add my vote as this, in
my opinion, the number one problem with the Mozilla mail editor.
I have to aggree with the last comment: for me this also is the
number one feature mozilla is lacking. It would be great if 
someone could decide to work on that.
Keywords: mozilla1.2
Inserting textblocks (textfiles) from a list ist a BIG MISSING FEATURE in mozilla.
The lack of this feature prevents to use mozilla in enterprises.
Inserting textblocks speeds up replying to customer requests.
This missing feature prevents an enterprise (I'm supporting) to get rid of
microsofts outlook. That's not good!
My $.02. Guys, isn't it a complete shame to process such an issue for 5 (five!)
years? Keep in mind, this feature is demanded and could increase popularity of
Mozilla alot.
Product: MailNews → Core
Today I changed to Thunderbird 1.5 and installed the extension "Quicktext" from Emil Hesslow. It works fine. I don't know if "Quicktext" will work for Mozilla, but the combination of Thunderbird and "Quicktext" fixes this "Bug" here.
sorry for the spam.  making bugzilla reflect reality as I'm not working on these bugs.  filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
Filter on "Nobody_NScomTLD_20080620"
QA Contact: esther → composition
Product: Core → MailNews Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.