Pārlūkot izejas kodu

Limits z-push sync to 3 months

This prevents timeouts when trying to sync very large mailboxes. By
default, z-push attempts to get headers for all messages in a folder.
James Ravn 10 gadus atpakaļ
vecāks
revīzija
46eabbedd7

+ 3
- 3
roles/mailserver/templates/usr_share_z-push_config.php.j2 Parādīt failu

128
     //   SYNC_FILTERTYPE_ALL (default, no limitation)
128
     //   SYNC_FILTERTYPE_ALL (default, no limitation)
129
     //   SYNC_FILTERTYPE_1DAY, SYNC_FILTERTYPE_3DAYS, SYNC_FILTERTYPE_1WEEK, SYNC_FILTERTYPE_2WEEKS,
129
     //   SYNC_FILTERTYPE_1DAY, SYNC_FILTERTYPE_3DAYS, SYNC_FILTERTYPE_1WEEK, SYNC_FILTERTYPE_2WEEKS,
130
     //   SYNC_FILTERTYPE_1MONTH, SYNC_FILTERTYPE_3MONTHS, SYNC_FILTERTYPE_6MONTHS
130
     //   SYNC_FILTERTYPE_1MONTH, SYNC_FILTERTYPE_3MONTHS, SYNC_FILTERTYPE_6MONTHS
131
-    define('SYNC_FILTERTIME_MAX', SYNC_FILTERTYPE_ALL);
131
+    define('SYNC_FILTERTIME_MAX', SYNC_FILTERTYPE_3MONTHS);
132
 
132
 
133
     // Interval in seconds before checking if there are changes on the server when in Ping.
133
     // Interval in seconds before checking if there are changes on the server when in Ping.
134
     // It means the highest time span before a change is pushed to a mobile. Set it to
134
     // It means the highest time span before a change is pushed to a mobile. Set it to
233
     //  BackendVCardDir settings
233
     //  BackendVCardDir settings
234
     // **********************
234
     // **********************
235
     define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
235
     define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
236
-    
237
-    
236
+
237
+
238
 /**********************************************************************************
238
 /**********************************************************************************
239
  *  Search provider settings
239
  *  Search provider settings
240
  *
240
  *

Notiek ielāde…
Atcelt
Saglabāt