# Bug mit falscher E-Mail-Zuordnung bei Benutzern in einer der letzten Versionen?

**URL:** https://meta.discourse.org/t/bug-with-bad-matching-of-email-in-users-in-one-of-the-last-versions/103070
**Category:** Support
**Created:** [29. November 2018 um 12:33 UTC](https://meta.discourse.org/t/bug-with-bad-matching-of-email-in-users-in-one-of-the-last-versions/103070 "2018-11-29T12:33:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [29. November 2018 um 12:33 UTC](https://meta.discourse.org/t/bug-with-bad-matching-of-email-in-users-in-one-of-the-last-versions/103070/1 "2018-11-29T12:33:23Z")

</div>

hi,

using ~this week’s builds, I’m having an odd issue. I have a user mailing sales at [ourcompany.com](http://ourcompany.com), I see a staged account for them, the Raw message shows From perfectly fine, but the mail shows attributed to a completely unrelated user, creating great confusion.

Were there any changes in the From → User mapping? And if not, how is an incoming mail mapped to a user?

**Update** : even mails from me will be attributed to that particular random user. Mails from before I updated were fine, so it’s going to be in a change from the last 24-48 hours.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [29. November 2018 um 23:22 UTC](https://meta.discourse.org/t/bug-with-bad-matching-of-email-in-users-in-one-of-the-last-versions/103070/4 "2018-11-29T23:22:39Z")

</div>

There were some recent changes in email handling which might have introduced a bug for some kind of weird emails. Can you send @vinothkannans and me a PM with the raw email that got mapped to the wrong user?

---

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [30. November 2018 um 05:35 UTC](https://meta.discourse.org/t/bug-with-bad-matching-of-email-in-users-in-one-of-the-last-versions/103070/6 "2018-11-30T05:35:58Z")

</div>

Been talking to @zogstrip already; basically _all_ incoming mail maps to the first entry of the email\_logs table. (All of them have bounce\_key set to null, it seems to find the first entry in that table with an empty bounce key)

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [30. November 2018 um 05:38 UTC](https://meta.discourse.org/t/bug-with-bad-matching-of-email-in-users-in-one-of-the-last-versions/103070/7 "2018-11-30T05:38:45Z")

</div>

Ah, I know where I have to look for this issue. Let me check and update here soon.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [30. November 2018 um 07:05 UTC](https://meta.discourse.org/t/bug-with-bad-matching-of-email-in-users-in-one-of-the-last-versions/103070/8 "2018-11-30T07:05:15Z")

</div>

This is fixed as per commit

[https://github.com/discourse/discourse/commit/fc0b7c9e2619add7750f572c6a51de1b81ab3b66](https://github.com/discourse/discourse/commit/fc0b7c9e2619add7750f572c6a51de1b81ab3b66)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [30. Dezember 2018 um 07:05 UTC](https://meta.discourse.org/t/bug-with-bad-matching-of-email-in-users-in-one-of-the-last-versions/103070/9 "2018-12-30T07:05:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
