Ray_Net wrote:

NO, a file is NOT the content of a file - per example, you cannot paste
the content of a file in the attachment window, you can only put the file.
Try it, per example to copy this sentence here in the clipboard, and put
it in the attachment part of a mail, without saving your clipboard in a
file.

There's some truth in what you're saying, but...

When you attach a file to an email, what you're actually doing is giving SM a reference (a pointer, a link) to the file, not the file itself. When you click "Send," SM follows the link, reads in the file contents, encodes them for transmission, and assembles all the components into the outgoing message.

Try this test with a file you don't care about:

1) Compose a new message (to yourself) and attach the file you don't care about.

2) Delete the file you don't care about from your disk.

3) Click "Send." You'll get an error message, "Sending of message failed. Unable to open the temporary file [full path and filename]. Check your 'Temporary Directory' setting."

This is because SM didn't try to read (open) the file until you clicked "Send" and it needed to assemble the message.

The point is, the user interface doesn't allow you to attach a file yourself; all you can do is point the file out to SM, and /the program/ will do the actual attaching. I haven't tested with null files (files whose length is zero bytes), but I'd still say a file must have content in order to be attached.

A file is not a content of a file .... a pdf file can be attached in the
attachment window of a mail, you cannot pass to the clipboard an copy it
into the body of the mail.

I have tested here with a pdf document containing a map of a walking
trace ... i had used "select all" in acrobat reader ... the map is gone,
only some text is pasted.

This is because of a flaw in the way Acrobat Reader (and the full program as well) copies to the clipboard. Its "select all" feature only copies text; the result would be the same if you pasted into a different application such as Word. It should be called "select all the text."

But, if i select this file on my desktop, i can paste THE FILE into the
attachment windows without hassle.

No, all you can paste into the attachment window is a link to the file's location. You can't paste the actual content, as you've shown already. For example, if you have a complete path and filename on the clipboard and you click the attachment window, you can paste that path and filename into the attachment dialog and it works. That's a link. You can't paste the file's contents into the attachment dialog because the OS will try to interpret that as a path and filename and return an error.

--
War doesn't determine who's right, just who's left.
--
Paul B. Gallagher

_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to