[horde] Ingo Vacation Addresses
Jeff
jlar310 at gmail.com
Mon Jan 24 20:13:12 UTC 2011
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
More information about the horde
mailing list