Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
416dbebf
Commit
416dbebf
authored
Apr 17, 2017
by
Michael Kroes
Committed by
Joshua Tauberer
Apr 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update z-push to 2.3.5 on the upstream repository z-push.org (#1153)
parent
2a046a22
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
autodiscover_config.php
conf/zpush/autodiscover_config.php
+4
-2
backend_imap.php
conf/zpush/backend_imap.php
+4
-0
zpush.sh
setup/zpush.sh
+14
-2
No files found.
conf/zpush/autodiscover_config.php
View file @
416dbebf
...
...
@@ -5,11 +5,12 @@
* Descr : Autodiscover configuration file
************************************************/
define
(
'TIMEZONE'
,
''
);
// Defines the base path on the server
define
(
'BASE_PATH'
,
dirname
(
$_SERVER
[
'SCRIPT_FILENAME'
])
.
'/'
);
// The Z-Push server location for the autodiscover response
define
(
'SERVERURL'
,
'https://PRIMARY_HOSTNAME/Microsoft-Server-ActiveSync'
);
define
(
'ZPUSH_HOST'
,
'PRIMARY_HOSTNAME'
);
define
(
'USE_FULLEMAIL_FOR_LOGIN'
,
true
);
...
...
@@ -18,6 +19,7 @@ define('LOGFILE', LOGFILEDIR . 'autodiscover.log');
define
(
'LOGERRORFILE'
,
LOGFILEDIR
.
'autodiscover-error.log'
);
define
(
'LOGLEVEL'
,
LOGLEVEL_INFO
);
define
(
'LOGUSERLEVEL'
,
LOGLEVEL
);
$specialLogUsers
=
array
();
// the backend data provider
define
(
'BACKEND_PROVIDER'
,
'BackendCombined'
);
...
...
conf/zpush/backend_imap.php
View file @
416dbebf
...
...
@@ -23,6 +23,9 @@ define('IMAP_FOLDER_TRASH', 'TRASH');
define
(
'IMAP_FOLDER_SPAM'
,
'SPAM'
);
define
(
'IMAP_FOLDER_ARCHIVE'
,
'ARCHIVE'
);
define
(
'IMAP_INLINE_FORWARD'
,
true
);
define
(
'IMAP_EXCLUDED_FOLDERS'
,
''
);
define
(
'IMAP_FROM_SQL_DSN'
,
'sqlite:STORAGE_ROOT/mail/roundcube/roundcube.sqlite'
);
define
(
'IMAP_FROM_SQL_USER'
,
''
);
define
(
'IMAP_FROM_SQL_PASSWORD'
,
''
);
...
...
@@ -49,5 +52,6 @@ global $imap_smtp_params;
$imap_smtp_params
=
array
(
'host'
=>
'ssl://127.0.0.1'
,
'port'
=>
587
,
'auth'
=>
true
,
'username'
=>
'imap_username'
,
'password'
=>
'imap_password'
);
define
(
'MAIL_MIMEPART_CRLF'
,
"
\r\n
"
);
define
(
'IMAP_MEETING_USE_CALDAV'
,
true
);
?>
setup/zpush.sh
View file @
416dbebf
...
...
@@ -22,7 +22,8 @@ apt_install \
php5enmod imap
# Copy Z-Push into place.
TARGETHASH
=
80cbe53de4ab8dd598d1f2af6f0a23fa396c529a
TARGETHASH
=
3ce78c23e02198bffe80c983ce247350c27590bd
VERSION
=
2.3.5
needs_update
=
0
#NODOC
if
[
!
-f
/usr/local/lib/z-push/version
]
;
then
needs_update
=
1
#NODOC
...
...
@@ -31,7 +32,13 @@ elif [[ $TARGETHASH != `cat /usr/local/lib/z-push/version` ]]; then
needs_update
=
1
#NODOC
fi
if
[
$needs_update
==
1
]
;
then
git_clone https://github.com/fmbiete/Z-Push-contrib
$TARGETHASH
''
/usr/local/lib/z-push
wget_verify http://download.z-push.org/final/2.3/z-push-
$VERSION
.tar.gz
$TARGETHASH
/tmp/z-push.tar.gz
rm
-rf
/usr/local/lib/z-push
tar
-xzf
/tmp/z-push.tar.gz
-C
/usr/local/lib/
rm
/tmp/z-push.tar.gz
mv
/usr/local/lib/z-push-
$VERSION
/usr/local/lib/z-push
rm
-f
/usr/sbin/z-push-
{
admin,top
}
ln
-s
/usr/local/lib/z-push/z-push-admin.php /usr/sbin/z-push-admin
ln
-s
/usr/local/lib/z-push/z-push-top.php /usr/sbin/z-push-top
...
...
@@ -67,6 +74,7 @@ cp conf/zpush/backend_caldav.php /usr/local/lib/z-push/backend/caldav/config.php
rm
-f
/usr/local/lib/z-push/autodiscover/config.php
cp
conf/zpush/autodiscover_config.php /usr/local/lib/z-push/autodiscover/config.php
sed
-i
"s/PRIMARY_HOSTNAME/
$PRIMARY_HOSTNAME
/"
/usr/local/lib/z-push/autodiscover/config.php
sed
-i
"s^define('TIMEZONE', .*^define('TIMEZONE', '
$(
cat
/etc/timezone
)
');^"
/usr/local/lib/z-push/autodiscover/config.php
# Some directories it will use.
...
...
@@ -93,3 +101,7 @@ EOF
# Restart service.
restart_service php5-fpm
# Fix states after upgrade
hide_output z-push-admin
-a
fixstates
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment