From eab865222598626b078fa79f50d40af927e0fd33 Mon Sep 17 00:00:00 2001 From: Stefan Wienert Date: Sat, 21 Feb 2015 16:01:27 +0100 Subject: [PATCH 1/3] 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 a012bf4..983ad20 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 From e2879a8eb12d01feb763f04951053ddd2d286811 Mon Sep 17 00:00:00 2001 From: Stefan Wienert Date: Sat, 21 Feb 2015 16:05:47 +0100 Subject: [PATCH 2/3] made the setup repeatable --- setup/webmail.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/webmail.sh b/setup/webmail.sh index 983ad20..bc1d079 100755 --- a/setup/webmail.sh +++ b/setup/webmail.sh @@ -48,11 +48,12 @@ if [ $needs_update == 1 ]; then mv /usr/local/lib/roundcubemail-$VERSION/ /usr/local/lib/roundcubemail rm -f /tmp/roundcube.tgz 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 +rm -rf /tmp/Roundcube-Plugins /usr/local/lib/roundcubemail/plugins/vacation_sieve +git clone -q https://github.com/arodier/Roundcube-Plugins.git /tmp/Roundcube-Plugins mv /tmp/Roundcube-Plugins/plugins/vacation_sieve /usr/local/lib/roundcubemail/plugins/vacation_sieve From ba8123f08a526987c0685198bc87e377c6f06d9e Mon Sep 17 00:00:00 2001 From: Stefan Wienert Date: Sat, 21 Feb 2015 16:06:56 +0100 Subject: [PATCH 3/3] reduced diff noise --- setup/webmail.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/setup/webmail.sh b/setup/webmail.sh index bc1d079..381819e 100755 --- a/setup/webmail.sh +++ b/setup/webmail.sh @@ -48,7 +48,6 @@ if [ $needs_update == 1 ]; then mv /usr/local/lib/roundcubemail-$VERSION/ /usr/local/lib/roundcubemail rm -f /tmp/roundcube.tgz echo $VERSION > /usr/local/lib/roundcubemail/version - fi echo "installing roundcube autoreply/vacation plugin.."