Primary email adress gets overwritten by profile submissions
Behaviour:
When a profile (e.g. for a newsletter subscription) is submitted, the system searches through possible duplicates by checking, if an email address (a@a.com) already exists. If it finds an existing secondary email adress (and the profile is configured to retrieve the primary email adress, which makes sense for a newsletter subscription form) it overwrites the primary email (b@b.com)of the corresponding contact with the (secondary) address it found (a@a.com). The result is a contact that has two entries for email adresses (primary and secondary) that are the same (a@a.com). The former primary email (b@b.com) gets lost.
Expected behaviour:
When the system finds an existing secondary email address, it should set the marker for "Bulk Mailings" for that address. The primary email address should remain untouched.