<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Unable to modify Vacation Addresses when $conf[&#039;hooks&#039;][&#039;vacation_only&#039;] = false;</title> 
  <pubDate>Fri, 10 Apr 2026 13:16:53 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9534</link> 
  <atom:link rel="self" type="application/rss+xml" title="Unable to modify Vacation Addresses when $conf[&#039;hooks&#039;][&#039;vacation_only&#039;] = false;" href="https://bugs.horde.org/ticket/9534/rss" /> 
  <description>Unable to modify Vacation Addresses when $conf[&#039;hooks&#039;][&#039;vacation_only&#039;] = false;</description> 
 
   
   
  <item> 
   <title>From my original email to the horde mailing list:

We have</title> 
   <description>From my original email to the horde mailing list:

We have one Horde front-end for multiple domains. The user selects the
domain on the login page and is authenticated by the selected back-end
IMAP server. All of this works fine. But in Ingo, the &quot;My Email
Addresses&quot; field defaults to just the username with no domain. The
script can not be activated without the domain included in the
address.

I can set the address with the proper domain by using
$conf[&#039;hooks&#039;][&#039;vacation_addresses&#039;] = true; and using the following
hook script

if (!function_exists(&#039;_ingo_hook_vacation_addresses&#039;)) {
    function _ingo_hook_vacation_addresses($user = null)
    {
        return array($user . &#039;@&#039; . $_SESSION[&#039;imp&#039;][&#039;maildomain&#039;]);
    }
}

The problem is that even with $conf[&#039;hooks&#039;][&#039;vacation_only&#039;] = false;
only the address generated by the hook is getting saved. The user can
enter a different or additional addresses, but they are not saved nor
are they entered into the script.

-- end original message to list

It is my understanding that setting [&#039;hooks&#039;][&#039;vacation_addresses&#039;] = true and [&#039;hooks&#039;][&#039;vacation_only&#039;] = false is intended to pull the default address(es) from the hook, but still allow the user to modify as needed.

However, in my tests the only address that was saved with the vacation filter was the one generated by the hook.

My workaround was to use the from_addr hook. With the from_addr properly set, I disabled the vacation_addresses filter. The vacation filter will use the from_addr by default and then the user can also edit the addresses as needed just for the filter.</description> 
   <pubDate>Mon, 24 Jan 2011 20:36:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9534#t61563</link> 
  </item> 
   
  <item> 
   <title>Superceded by request #10764 for Ingo 2.</title> 
   <description>Superceded by request #10764 for Ingo 2.</description> 
   <pubDate>Mon, 12 Dec 2011 16:48:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9534#t69445</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
