Commit 4d85385a authored by skummer's avatar skummer

ZP-258 #comment only check for interval if a cut off date is set #time 30m

git-svn-id: https://z-push.org/svn/z-push/trunk@1506 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent d90da264
...@@ -229,6 +229,12 @@ class ImportChangesICS implements IImportChanges { ...@@ -229,6 +229,12 @@ class ImportChangesICS implements IImportChanges {
* @return boolean * @return boolean
*/ */
private function isMessageInSyncInterval($messageid) { private function isMessageInSyncInterval($messageid) {
// if there is no restriciton we do not need to check
if ($this->cutoffdate === false)
return true;
ZLog::Write(LOGLEVEL_DEBUG, sprintf("ImportChangesICS->isMessageInSyncInterval('%s'): cut off date is: %s", $messageid, $this->cutoffdate));
$entryid = mapi_msgstore_entryidfromsourcekey($this->store, $this->folderid, hex2bin($messageid)); $entryid = mapi_msgstore_entryidfromsourcekey($this->store, $this->folderid, hex2bin($messageid));
if(!$entryid) { if(!$entryid) {
ZLog::Write(LOGLEVEL_WARN, sprintf("ImportChangesICS->isMessageInSyncInterval('%s'): Error, unable to resolve message id", $messageid)); ZLog::Write(LOGLEVEL_WARN, sprintf("ImportChangesICS->isMessageInSyncInterval('%s'): Error, unable to resolve message id", $messageid));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment