summaryrefslogtreecommitdiff
path: root/lib/KolabAdmin/Sieve/Segment/Vacation.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/KolabAdmin/Sieve/Segment/Vacation.php')
-rw-r--r--lib/KolabAdmin/Sieve/Segment/Vacation.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/KolabAdmin/Sieve/Segment/Vacation.php b/lib/KolabAdmin/Sieve/Segment/Vacation.php
index 96cf66a..a025bc5 100644
--- a/lib/KolabAdmin/Sieve/Segment/Vacation.php
+++ b/lib/KolabAdmin/Sieve/Segment/Vacation.php
@@ -85,7 +85,7 @@ extends KolabAdmin_Sieve_Segment
$this->template = 'if allof (%s' . "\r\n" .
'%s,' . "\r\n" .
'%s) {' . "\r\n" .
- 'vacation :addresses [ %s ] :days %s text:' . "\r\n" .
+ 'vacation %s :days %s text:' . "\r\n" .
'%s' . "\r\n" .
'.' . "\r\n" .
';' . "\r\n" .
@@ -241,11 +241,17 @@ extends KolabAdmin_Sieve_Segment
} else {
$react_to_spam = 'true';
}
+ $addresses = $this->getRecipientAddresses();
+ if (!empty($addresses)) {
+ $addresses = ':addresses [ "' . join('", "', $this->getRecipientAddresses()) . '" ]';
+ } else {
+ $addresses = '';
+ }
return array(
($this->isActive()) ? 'true, ## vacation enabled' : 'false, ## vacation disabled',
$domain,
$react_to_spam,
- '"' . join('", "', $this->getRecipientAddresses()) . '"',
+ $addresses,
$this->getResendAfter(),
$this->getResponse()
);