Fwd: Re: [sork] Question about vacation/main.php

Chuck Hagenbuch chuck at horde.org
Tue Dec 2 10:38:22 PST 2003



----- Forwarded message from richard.heggs at nottinghamcity.gov.uk -----
    Date: Tue,  2 Dec 2003 17:21:29 +0000
    From: Richard Heggs <richard.heggs at nottinghamcity.gov.uk>
Reply-To: Richard Heggs <richard.heggs at nottinghamcity.gov.uk>
 Subject: Re: [sork] Question about vacation/main.php
      To: Chuck Hagenbuch <chuck at horde.org>

Quoting Chuck Hagenbuch <chuck at horde.org>:
> > Question: can all of the other backends tell whether or not there is an
> > active vacation message?
>
> No.

That was quick :)

How about if I have another attribute, say 'trustbackend', defaulting to
false.  If it is set to true, then vacation will trust what the backend
tells it:

if ($driver->isEnabled($user, $realm, $pass)) {
    $curmessage = $driver->currentMessage($user, $realm, $pass);
    $notification->push(_("Your vacation notice is currently enabled."),
'horde.success');
} else {
    $curmessage = $conf['vacation']['default'];
    if ($driver->_params[$realm]['trustbackend'] == true)
      $notification->push(_("Your vacation notice is currently disabled."),
'horde.warning');
}


Would something like this be acceptable?

--
Richard Heggs
Systems Analyst
Nottingham City Council

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


######################################################################
This e-mail (and any attachments) is confidential and may contain personal
views which are not the views of Nottingham City Council unless specifically
stated. If you have received it in error, please delete it from your system,
do not use, copy or disclose the information in any way nor act in reliance
on it and notify the sender immediately. Please note that Nottingham City
Council monitors e-mails sent or received. Further communication will
signify your consent to this.
######################################################################



----- End forwarded message -----


-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"I'm really... I'm not too fascinated by green food." - Average Joe


More information about the sork mailing list