6.0.0-alpha10
5/14/25

[#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 (at) hrz (dot) tu-chemnitz (dot) de
Created 08/06/2018 (2473 days ago)
Due
Updated 08/06/2018 (2473 days ago)
Assigned
Resolved
Milestone
Patch Yes

History
08/06/2018 12:07:02 PM frank (dot) richter (at) hrz (dot) tu-chemnitz (dot) de Comment #1
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Hook for vacation excludes
Queue ⇒ Ingo
Milestone ⇒
Patch ⇒ Yes
New Attachment: Vacation-excludes.patch Download
Reply to this comment
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;
     }

Saved Queries