[#14844] Hook for vacation excludes
Summary Hook for vacation excludes
Queue Ingo
Queue Version 3.2.16
Type Enhancement
State New
Priority 1. Low
Owners
Requester frank.richter@hrz.tu-chemnitz.de
Created 2018-08-06 (344 days ago)
Due
Updated 2018-08-06 (344 days ago)
Assigned
Resolved
Milestone
Patch Yes

Comments
frank.richter@hrz.tu-chemnitz.de 2018-08-06 12:07:02
This patch enables a hook for manipulating exclude addresses for a 
vacation rule.

Rationale: Exclude vacation messages to adresses like root@domain
apache@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@domain', 'apache@domain');
         if (is_array($value)) {
             return array_unique(array_merge($value, $default));
         }
         return $default;
     }