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
eab86522
Commit
eab86522
authored
Feb 21, 2015
by
Stefan Wienert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added vacation_sieve plugin for Roundcube
parent
7ec662c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
webmail.sh
setup/webmail.sh
+30
-1
No files found.
setup/webmail.sh
View file @
eab86522
...
@@ -50,6 +50,12 @@ if [ $needs_update == 1 ]; then
...
@@ -50,6 +50,12 @@ if [ $needs_update == 1 ]; then
echo
$VERSION
>
/usr/local/lib/roundcubemail/version
echo
$VERSION
>
/usr/local/lib/roundcubemail/version
fi
fi
echo
"installing roundcube autoreply/vacation plugin.."
rm
-rf
/tmp/Roundcube-Plugins
git clone https://github.com/arodier/Roundcube-Plugins.git /tmp/Roundcube-Plugins
mv
/tmp/Roundcube-Plugins/plugins/vacation_sieve /usr/local/lib/roundcubemail/plugins/vacation_sieve
# ### Configuring Roundcube
# ### Configuring Roundcube
# Generate a safe 24-character secret key of safe characters.
# Generate a safe 24-character secret key of safe characters.
...
@@ -79,7 +85,7 @@ cat > /usr/local/lib/roundcubemail/config/config.inc.php <<EOF;
...
@@ -79,7 +85,7 @@ cat > /usr/local/lib/roundcubemail/config/config.inc.php <<EOF;
\$
config['support_url'] = 'https://mailinabox.email/';
\$
config['support_url'] = 'https://mailinabox.email/';
\$
config['product_name'] = 'Mail-in-a-Box/Roundcube Webmail';
\$
config['product_name'] = 'Mail-in-a-Box/Roundcube Webmail';
\$
config['des_key'] = '
$SECRET_KEY
';
\$
config['des_key'] = '
$SECRET_KEY
';
\$
config['plugins'] = array('archive', 'zipdownload', 'password', 'managesieve');
\$
config['plugins'] = array('archive', 'zipdownload', 'password', 'managesieve'
, 'jqueryui', 'vacation_sieve'
);
\$
config['skin'] = 'classic';
\$
config['skin'] = 'classic';
\$
config['login_autocomplete'] = 2;
\$
config['login_autocomplete'] = 2;
\$
config['password_charset'] = 'UTF-8';
\$
config['password_charset'] = 'UTF-8';
...
@@ -87,6 +93,29 @@ cat > /usr/local/lib/roundcubemail/config/config.inc.php <<EOF;
...
@@ -87,6 +93,29 @@ cat > /usr/local/lib/roundcubemail/config/config.inc.php <<EOF;
?>
?>
EOF
EOF
cat
>
/usr/local/lib/roundcubemail/plugins/vacation_sieve/config.inc.php
<<
EOF
;
<?php
/*
* Do not edit. Written by Mail-in-a-Box. Regenerated on updates.
*/
\$
rcmail_config['vacation_sieve'] = array(
'date_format' => 'd/m/Y',
'working_hours' => array(8,18),
'msg_format' => 'text',
'logon_transform' => array('#([a-z])[a-z]+(
\.
|
\s
)([a-z])#i', '
\$
1
\$
3'),
'transfer' => array(
'mode' => 'managesieve',
'ms_activate_script' => true,
'host' => 'localhost',
'port' => '4190',
'usetls' => false,
'path' => 'vacation',
)
);
EOF
# Create writable directories.
# Create writable directories.
mkdir
-p
/var/log/roundcubemail /tmp/roundcubemail
$STORAGE_ROOT
/mail/roundcube
mkdir
-p
/var/log/roundcubemail /tmp/roundcubemail
$STORAGE_ROOT
/mail/roundcube
chown
-R
www-data.www-data /var/log/roundcubemail /tmp/roundcubemail
$STORAGE_ROOT
/mail/roundcube
chown
-R
www-data.www-data /var/log/roundcubemail /tmp/roundcubemail
$STORAGE_ROOT
/mail/roundcube
...
...
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