summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorniko <niko>2012-06-24 22:27:33 (GMT)
committerniko <niko>2012-06-24 22:27:33 (GMT)
commit5dbc14a22ec2ec5114b75e090875dd6ddb7380d4 (patch)
tree27801480ade7462a6f0baa3b06f49cd19c749b75 /src
parent09b2692e341e6ca4437023d0962fbf8195fd19e6 (diff)
downloadsynckolab-5dbc14a22ec2ec5114b75e090875dd6ddb7380d4.tar.gz
fix #24954
Diffstat (limited to 'src')
-rw-r--r--src/chrome/content/synckolab/synckolab.js20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/chrome/content/synckolab/synckolab.js b/src/chrome/content/synckolab/synckolab.js
index a8b8189..3b65bcf 100644
--- a/src/chrome/content/synckolab/synckolab.js
+++ b/src/chrome/content/synckolab/synckolab.js
@@ -103,10 +103,28 @@ com.synckolab.main.syncKolabTimer = function () {
com.synckolab.tools.logMessage("sync with config "+com.synckolab.main.forceConfig +" is still running...", com.synckolab.global.LOG_DEBUG);
}
+*/
+ // refresh all mail folders configured to trigger auto-sync
+ if(com.synckolab.main.syncConfigs) {
+ for(var j = 0; j < com.synckolab.main.syncConfigs.length; j++) {
+ if(com.synckolab.main.syncConfigs[j]) {
+ var curConfig = com.synckolab.main.syncConfigs[j];
+ if(curConfig.syncListener && curConfig.folder)
+ {
+ com.synckolab.tools.logMessage("refreshing " + curConfig.folderMsgURI + "...", com.synckolab.global.LOG_DEBUG);
+ try {
+ curConfig.folder.updateFolder();
+ } catch (ex) {
+ com.synckolab.tools.logMessage("unable to refresh " + curConfig.folderMsgURI + ": " + ex, com.synckolab.global.LOG_WARNING);
+ }
+ }
+ }
+ }
+ }
+
// wait a minute
com.synckolab.tools.logMessage("sync timer: sleep for one minute", com.synckolab.global.LOG_DEBUG);
com.synckolab.main.timer.initWithCallback({notify:function (){com.synckolab.main.syncKolabTimer();}}, 60000, 0);
-*/
};
com.synckolab.main.initGroupwareActions = function() {