summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/kolab_sync_data_email.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/kolab_sync_data_email.php b/lib/kolab_sync_data_email.php
index 9c29510..f36c42d 100644
--- a/lib/kolab_sync_data_email.php
+++ b/lib/kolab_sync_data_email.php
@@ -381,7 +381,7 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
$dt = new DateTime('now', new DateTimeZone('UTC'));
$dt->modify($mod);
// RFC3501: IMAP SEARCH
- $filter[] = 'SINCE ' . $dt->format('d-m-Y');
+ $filter[] = 'SINCE ' . $dt->format('d-M-Y');
}
return $filter;
@@ -806,6 +806,7 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
&& !empty($query['and']['greaterThan']['dateReceived'])
&& !empty($query['and']['greaterThan']['value'])
) {
+ // @TODO: date format ?
$search_str .= ' SINCE ' . trim($query['and']['greaterThan']['value']);
}
@@ -813,6 +814,7 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
&& !empty($query['and']['lessThan']['dateReceived'])
&& !empty($query['and']['lessThan']['value'])
) {
+ // @TODO: date format ?
$search_str .= ' BEFORE ' . trim($query['and']['lessThan']['value']);
}
}