[Tickets #2663] NEW: Entry duplication in addressbook when automatically adding recipients

bugs@bugs.horde.org bugs at bugs.horde.org
Fri Sep 23 11:32:23 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2663
-----------------------------------------------------------------------
 Ticket             | 2663
 Created By         | kitterma at ucs.fsu.edu
 Summary            | Entry duplication  in addressbook when automatically adding recipients
 Queue              | IMP
 Version            | 4.0.4-RC2
 State              | Unconfirmed
 Priority           | 1. Low
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


kitterma at ucs.fsu.edu (2005-09-23 11:32) wrote:

Code doesn't seem to skip over current entries in the address book when
automatically
adding recipients, insttead adding in duplicates.  Relavent code is: 
            $results = $registry->call('contacts/search', array($emails,
array($
abook), array($abook => array('email'))));

            foreach ($recipientArray as $recipient) {
                /* Skip email addresses that already exist in the
                 * add_source. */
                if (isset($emails[$recipient->mailbox . '@' .
$recipient->host])
 &&
                    count($emails[$recipient->mailbox . '@' .
$recipient->host])
) {
                    continue;
                }

I believe the isset($emails... and count($emails should be isset($results...
and
count($results... 




More information about the bugs mailing list