summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com_zimbra_emaildownloader.xml1
-rw-r--r--emaildownloader.js11
2 files changed, 4 insertions, 8 deletions
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 @@
<handlerObject>com_zimbra_emaildownloader_HandlerObject</handlerObject>
<zimletPanelItem label="${msg.EmailDownloaderZimlet_panel_label}" icon="emaildownloader-panelIcon">
<toolTipText>${msg.EmailDownloader_panel_tooltip}</toolTipText>
- <dragSource type="ZmConv" />
<dragSource type="ZmMailMsg"/>
</zimletPanelItem>
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 =