6.0.0-beta1
8/25/25

[#2663] Entry duplication in addressbook when automatically adding recipients
Summary Entry duplication in addressbook when automatically adding recipients
Queue IMP
Queue Version 4.0.4-RC2
Type Bug
State Resolved
Priority 1. Low
Owners
Requester kitterma (at) ucs (dot) fsu (dot) edu
Created 09/23/2005 (7276 days ago)
Due
Updated 09/23/2005 (7276 days ago)
Assigned
Resolved 09/23/2005 (7276 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/23/2005 11:07:45 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Fixed, thanks.
09/23/2005 06:32:21 PM kitterma (at) ucs (dot) fsu (dot) edu Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Entry duplication in addressbook when automatically adding recipients
Queue ⇒ IMP
Reply to this comment
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...

Saved Queries