[horde] Ingo Vacation Addresses

Jan Schneider jan at horde.org
Mon Jan 24 20:22:09 UTC 2011


Zitat von Jeff <jlar310 at gmail.com>:

> On Mon, Jan 24, 2011 at 11:15 AM, Jan Schneider <jan at horde.org> wrote:
>> Zitat von Jeff <jlar310 at gmail.com>:
>>
>>> 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 "My Email
>>> Addresses" 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['hooks']['vacation_addresses'] = true; and using the following
>>> hook script
>>>
>>> if (!function_exists('_ingo_hook_vacation_addresses')) {
>>>     function _ingo_hook_vacation_addresses($user = null)
>>>     {
>>>         return array($user . '@' . $_SESSION['imp']['maildomain']);
>>>     }
>>> }
>>>
>>> The problem is that even with $conf['hooks']['vacation_only'] = 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.
>>>
>>> What, if anything, am I doing wrong?
>>>
>>> Is my hook script too simple? Is there a way to examine user-generated
>>> values in the hook script and return the default value of
>>> user at maildomain only if it is needed?
>>
>> Sounds like a bug to me.
>>
>> Jan.
>>
>
> Well, I've worked around it for now. I found that if I use a hook for
> from_addr, then the vacation filter picks that up.
>
> If you want me to file a bug report on the vacation hook issue anyway,
> let me know.
>
> Jeff
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>


Please create a ticket on http://bugs.horde.org/.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list