summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2010-04-06 10:14:19 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2010-04-06 10:14:19 (GMT)
commit4fa63dcb7d33866f4a26c4d0c30fa3a878b4275c (patch)
treeb6ef94498d8ef55eb2332ad6636c3be5b6af18ba
parent8eecbaccb2e4dabe9cc7d82aa759bdd7671efe2a (diff)
downloadkolab-webadmin-4fa63dcb7d33866f4a26c4d0c30fa3a878b4275c.tar.gz
Import code that was misplaced in the controller.
-rw-r--r--lib/KolabAdmin/Sieve/Segment/Vacation.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/KolabAdmin/Sieve/Segment/Vacation.php b/lib/KolabAdmin/Sieve/Segment/Vacation.php
index 70c73f6..79dad84 100644
--- a/lib/KolabAdmin/Sieve/Segment/Vacation.php
+++ b/lib/KolabAdmin/Sieve/Segment/Vacation.php
@@ -90,6 +90,19 @@ extends KolabAdmin_Sieve_Segment
'.' . "\r\n" .
';' . "\r\n" .
'}' . "\r\n";
+
+ $this->_response = sprintf(
+ _("I am out of office until %s.\r\n").
+ _("In urgent cases, please contact Mrs. <vacation replacement>\r\n\r\n").
+ _("email: <email address of vacation replacement>\r\n").
+ _("phone: +49 711 1111 11\r\n").
+ _("fax.: +49 711 1111 12\r\n\r\n").
+ _("Yours sincerely,\r\n").
+ _("-- \r\n").
+ _("<enter your name and email address here>"),
+ strftime(_('%x'))
+ );
+
parent::__construct($script);
}
@@ -122,6 +135,10 @@ extends KolabAdmin_Sieve_Segment
*/
public function getResendAfter()
{
+ //@todo: Should be placed into a validate method.
+ if ($this->_resend_after < 1) {
+ $this->_resend_after = 7;
+ }
return $this->_resend_after;
}