[imp] Automatically saving recipients and multiple email addresses in address books

Jan Schneider jan at horde.org
Thu Sep 8 09:09:17 UTC 2011


Zitat von Gálos András <galosa at netinform.hu>:

> 2011.09.08. 10:23 keltezéssel, Jan Schneider írta:
>>
>> Zitat von Andras Galos <galosa at netinform.hu>:
>>
>>> Hi,
>>>
>>> I've been using Horde for many years on many servers.
>>> The "Save recipients automatically to the default address book" is
>>> turned on at Imp's options, Address Books.
>>> Everything worked fine, the recipient was saved in the default address
>>> book on message send.
>>>
>>> Then, Turba's sources configuration has been changed to support
>>> multiple email addresses for a single contact. The following has been
>>> added to the end of turba/config/sources.php:
>>>
>>> unset($cfgSources['localsql']['map']['email']);
>>> $cfgSources['localsql']['tabs'][_('Communications')] = array('emails',
>>> 'homePhone', 'workPhone', 'cellPhone', 'fax', 'pager');
>>> $cfgSources['localsql']['map']['emails'] = 'object_emails';
>>> $cfgSources['localsql']['search'] = array(
>>> 'name',
>>> 'emails'
>>> );
>>>
>>> A database modification has been done accordingly on the turba_objects
>>> table:
>>> object_email varchar(255) has been renamed to object_emails varchar(2048)
>>>
>>> Adding, editing, saving, deleting and using contacts with multiple
>>> addresses work fine. But, as recently reported, the automatically
>>> saving recipient addresses on email sending functionality does not
>>> work. Simply, no contact is saved at all. No error message appears on
>>> the site or in the horde logs.
>>> If I revert the above config and DB changes, the functionality works
>>> again, the recipient is saved in the appropriate address book.
>>>
>>> Could you please point me what I have missed? What else do I need to
>>> do when enabling contacts with multiple email addresses to let the
>>> recipients automatically saved on message send?
>>>
>>> Related versions I use:
>>> Horde 3.3.12
>>> Imp H3 4.3.10
>>> Turba H3 2.3.6
>>
>> I guess saving addresses from the message view doesn't work either? The
>> target attribute for saving email addresses might be hardcoded.
>
> Saving contacts from the message view seemingly works as a message  
> line says "Entry "x" was successfully added to the address book",  
> and the contact is created in the appropriate address book, but its  
> email address is not recorded in the object_emails field.
> Do I have to give up using multiple email addresses in address books  
> for now if I want the address saving functions?

Looks like it. You can check if it works in Horde 4, but this feature  
might still have to be made more flexible to support attribute fields  
named differently than "email".

Jan.

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



More information about the imp mailing list