| 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 (2643 days ago) | 
| Due | |
| Updated | 08/06/2018 (2643 days ago) | 
| Assigned | |
| Resolved | |
| Milestone | |
| Patch | Yes | 
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Hook for vacation excludes
Queue ⇒ Ingo
Milestone ⇒
Patch ⇒ Yes
New Attachment: Vacation-excludes.patch
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;
}