From eab865222598626b078fa79f50d40af927e0fd33 Mon Sep 17 00:00:00 2001 From: Stefan Wienert Date: Sat, 21 Feb 2015 16:01:27 +0100 Subject: [PATCH] added vacation_sieve plugin for Roundcube --- setup/webmail.sh | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/setup/webmail.sh b/setup/webmail.sh index a012bf4f..983ad201 100755 --- a/setup/webmail.sh +++ b/setup/webmail.sh @@ -50,6 +50,12 @@ if [ $needs_update == 1 ]; then echo $VERSION > /usr/local/lib/roundcubemail/version 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 # Generate a safe 24-character secret key of safe characters. @@ -79,7 +85,7 @@ cat > /usr/local/lib/roundcubemail/config/config.inc.php < /usr/local/lib/roundcubemail/config/config.inc.php < EOF +cat > /usr/local/lib/roundcubemail/plugins/vacation_sieve/config.inc.php < '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. 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