6.0.0-git
2018-12-15

[#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 2018-08-06 (131 days ago)
Due
Updated 2018-08-06 (131 days ago)
Assigned
Resolved
Milestone
Patch Yes

History
2018-08-06 12:07:02 frank (dot) richter (at) hrz (dot) tu-chemnitz (dot) de Comment #1
Type ⇒ Enhancement
State ⇒ New
Priority ⇒ 1. Low
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