[Tickets #14844] Hook for vacation excludes

noreply at bugs.horde.org noreply at bugs.horde.org
Mon Aug 6 12:07:02 UTC 2018


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: https://bugs.horde.org/ticket/14844
------------------------------------------------------------------------------
  Ticket           | 14844
  Erstellt Von     | frank.richter at hrz.tu-chemnitz.de
  Zusammenfassung  | Hook for vacation excludes
  Warteschlange    | Ingo
  Version          | 3.2.16
  Typ              | Enhancement
  Status           | New
  Priorität        | 1. Low
  Milestone        |
  Patch            | 1
  Zuständige       |
------------------------------------------------------------------------------


frank.richter at hrz.tu-chemnitz.de (2018-08-06 12:07) hat geschrieben:

This patch enables a hook for manipulating exclude addresses for a  
vacation rule.

Rationale: Exclude vacation messages to adresses like root at domain,  
apache at domain etc.

A hook function might be:
     /**
      * Set the exclude addresses used for the vacation module.
      *
      * @param string $user  The username.
      * @param array $value  The default/current value.
      *
      * @return array  A list of exclude addresses.
      */
     public function vacation_excludes($user = null, $value = null)
     {
         $default = array('root at domain', 'apache at domain');
         if (is_array($value)) {
             return array_unique(array_merge($value, $default));
         }
         return $default;
     }




frank.richter at hrz.tu-chemnitz.de (2018-08-06 12:07) hat hochgeladen:  
Vacation-excludes.patch

https://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=Vacation-excludes.patch&ticket=14844&fn=%2FVacation-excludes.patch





More information about the bugs mailing list