diff --git a/com_zimbra_emaildownloader.xml b/com_zimbra_emaildownloader.xml
index f8b48ba..3ed4a28 100644
--- a/com_zimbra_emaildownloader.xml
+++ b/com_zimbra_emaildownloader.xml
@@ -5,7 +5,6 @@
com_zimbra_emaildownloader_HandlerObject
${msg.EmailDownloader_panel_tooltip}
-
diff --git a/emaildownloader.js b/emaildownloader.js
index ca89ba0..7e7a7b8 100644
--- a/emaildownloader.js
+++ b/emaildownloader.js
@@ -97,23 +97,20 @@ function(droppedItem) {
oReq.onload = function(oEvent) {
var blob = oReq.response;
/* needs Access-Control-Allow-Origin: * header on the server */
- var postUrl = 'http://ocr.ged.pfwb.be/put.php';
+ var postUrl = 'https://ocr.pcf.be/put.php';
var sendReq = new XMLHttpRequest();
sendReq.open("PUT", postUrl, true);
+ username = appCtxt.getActiveAccount().name;
+ sendReq.setRequestHeader('x-username', username);
sendReq.onload = function (oEvent) {
// Uploaded.
- alert('done');
+ alert('Le message est maintenant dans la GED.');
};
sendReq.send(blob);
};
-
oReq.send();
-
-
-
- window.open(getUrl, "_blank");
};
EmailDownloaderZimlet.prototype._getMsgIdsFromConv =