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
6307503c
Commit
6307503c
authored
Oct 31, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #580 from yodax/z-push-update
Update z-push to latest version
parents
5d158c52
9b1e04b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
10 deletions
+21
-10
backend_caldav.php
conf/zpush/backend_caldav.php
+5
-3
backend_imap.php
conf/zpush/backend_imap.php
+13
-6
zpush.sh
setup/zpush.sh
+3
-1
No files found.
conf/zpush/backend_caldav.php
View file @
6307503c
...
...
@@ -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
);
?>
conf/zpush/backend_imap.php
View file @
6307503c
...
...
@@ -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'
);
...
...
setup/zpush.sh
View file @
6307503c
...
...
@@ -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
...
...
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