the problem is that thunderbird doesn't provide a text/uri-list flavour that
could be evaluated by the desktop environment to copy the attachment somewhere
else.
One idea would be to save the attachment to a temporary file and pass the url
of that file as a test/uri-list flavour in the drag operation.
To make that feature work for all platforms, a java script based implementation
would be preferred. So can somebody point me to the place in the mozilla sources
where the drag for attachments is started?
mailnews/base/resources/content/msgHdrOverlay.js:attachmentAreaDNDObserver
sounds promising, however that method seems not to be called when I try to
drag an attachment from the message view.
BTW, when I drag the attachment to the desktop, the JS error console shows the following message:
It seems like the 'application/moz-file-promise-url' flavour is missing...
Can somebody enlighten me what that flavour is for and why it could be missing?
Hej,
the problem is that thunderbird doesn't provide a text/uri-list flavour that
could be evaluated by the desktop environment to copy the attachment somewhere
else.
One idea would be to save the attachment to a temporary file and pass the url base/resources/ content/ msgHdrOverlay. js:attachmentAr eaDNDObserver
of that file as a test/uri-list flavour in the drag operation.
To make that feature work for all platforms, a java script based implementation
would be preferred. So can somebody point me to the place in the mozilla sources
where the drag for attachments is started?
mailnews/
sounds promising, however that method seems not to be called when I try to
drag an attachment from the message view.
BTW, when I drag the attachment to the desktop, the JS error console shows the following message:
Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsITransferabl e.getTransferDa ta]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome: //messenger/ content/ msgHdrViewOverl ay.js :: anonymous :: line 1627" data: no] //messenger/ content/ msgHdrViewOverl ay.js
Source File: chrome:
Line: 1627
It seems like the 'application/ moz-file- promise- url' flavour is missing...
Can somebody enlighten me what that flavour is for and why it could be missing?
Ciao,
Tobias