diff --git a/conf/zpush/backend_caldav.php b/conf/zpush/backend_caldav.php index da1c2c3e..7bddded9 100644 --- a/conf/zpush/backend_caldav.php +++ b/conf/zpush/backend_caldav.php @@ -5,10 +5,12 @@ * Descr : CalDAV backend configuration file ************************************************/ -define('CALDAV_SERVER', 'https://localhost'); +define('CALDAV_PROTOCOL', 'https'); +define('CALDAV_SERVER', 'localhost'); define('CALDAV_PORT', '443'); define('CALDAV_PATH', '/caldav/calendars/%u/'); -define('CALDAV_PERSONAL', ''); -define('CALDAV_SUPPORTS_SYNC', true); +define('CALDAV_PERSONAL', 'PRINCIPAL'); +define('CALDAV_SUPPORTS_SYNC', false); +define('CALDAV_MAX_SYNC_PERIOD', 2147483647); ?> diff --git a/conf/zpush/backend_imap.php b/conf/zpush/backend_imap.php index 45594092..877e7cd8 100644 --- a/conf/zpush/backend_imap.php +++ b/conf/zpush/backend_imap.php @@ -10,6 +10,19 @@ define('IMAP_PORT', 993); define('IMAP_OPTIONS', '/ssl/norsh/novalidate-cert'); define('IMAP_DEFAULTFROM', ''); +define('SYSTEM_MIME_TYPES_MAPPING', '/etc/mime.types'); +define('IMAP_AUTOSEEN_ON_DELETE', false); +define('IMAP_FOLDER_CONFIGURED', true); +define('IMAP_FOLDER_PREFIX', ''); +define('IMAP_FOLDER_PREFIX_IN_INBOX', false); +define('IMAP_FOLDER_INBOX', 'INBOX'); +define('IMAP_FOLDER_SENT', 'SENT'); +define('IMAP_FOLDER_DRAFT', 'DRAFTS'); +define('IMAP_FOLDER_TRASH', 'TRASH'); +define('IMAP_FOLDER_SPAM', 'SPAM'); +define('IMAP_FOLDER_ARCHIVE', 'ARCHIVE'); + + // not used define('IMAP_FROM_SQL_DSN', ''); define('IMAP_FROM_SQL_USER', ''); @@ -28,12 +41,6 @@ define('IMAP_FROM_LDAP_FIELDS', serialize(array('givenname', 'sn', 'mail'))); define('IMAP_FROM_LDAP_FROM', '#givenname #sn <#mail>'); -// copy outgoing mail to this folder. If not set z-push will try the default folders -define('IMAP_SENTFOLDER', ''); -define('IMAP_INLINE_FORWARD', true); -define('IMAP_EXCLUDED_FOLDERS', ''); -define('IMAP_SMTP_METHOD', 'sendmail'); - global $imap_smtp_params; $imap_smtp_params = array('host' => 'ssl://localhost', 'port' => 587, 'auth' => true, 'username' => 'imap_username', 'password' => 'imap_password'); diff --git a/setup/zpush.sh b/setup/zpush.sh index 1acc0897..7ecfa0c6 100755 --- a/setup/zpush.sh +++ b/setup/zpush.sh @@ -22,7 +22,7 @@ apt_install \ php5enmod imap # Copy Z-Push into place. -TARGETHASH=d0cd5a47c53afac5c3b287006dc8a48a1c4ffcd5 +TARGETHASH=80cbe53de4ab8dd598d1f2af6f0a23fa396c529a needs_update=0 #NODOC if [ ! -f /usr/local/lib/z-push/version ]; then needs_update=1 #NODOC @@ -42,6 +42,8 @@ fi sed -i "s^define('TIMEZONE', .*^define('TIMEZONE', '$(cat /etc/timezone)');^" /usr/local/lib/z-push/config.php sed -i "s/define('BACKEND_PROVIDER', .*/define('BACKEND_PROVIDER', 'BackendCombined');/" /usr/local/lib/z-push/config.php sed -i "s/define('USE_FULLEMAIL_FOR_LOGIN', .*/define('USE_FULLEMAIL_FOR_LOGIN', true);/" /usr/local/lib/z-push/config.php +sed -i "s/define('LOG_MEMORY_PROFILER', .*/define('LOG_MEMORY_PROFILER', false);/" /usr/local/lib/z-push/config.php +sed -i "s/define('BUG68532FIXED', .*/define('BUG68532FIXED', false);/" /usr/local/lib/z-push/config.php # Configure BACKEND rm -f /usr/local/lib/z-push/backend/combined/config.php