Skip to content
Snippets Groups Projects
Commit 6e0c8f5d authored by j.goderbauer's avatar j.goderbauer
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1056301][Drag&Drop -Email Import mit Plugin]

added todo comments
parent 592e3694
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ for (var i = 0, l = files.length; i < l; i++)
case "application/octet-stream"://in some cases .msg-files will not get any mimetype from the browser so let's use the default "anything"
case "message/rfc822":
case "text/html": //in some cases .eml-files are recognized as text/html, till this is fixed accept the text/html contents too
//todo: remove text/html workaround when #1056482 is fixed
var mailObj = _getMailObj(files[i]);
if (mailObj)
{
......@@ -59,7 +60,7 @@ if (messages.length)
function _getMailObj(pDroppedFile)
{
var mailStr;
if (pDroppedFile.mimeType == "message/rfc822" || pDroppedFile.mimeType == "text/html")
if (pDroppedFile.mimeType == "message/rfc822" || pDroppedFile.mimeType == "text/html")//todo: remove text/html workaround when #1056482 is fixed
mailStr = util.decodeBase64String(pDroppedFile.data);
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment