Skip to content

Sender name is cached from the first email and never updated for later emails from the same address #717

Description

@NielsCodes

Bug Report

Problematic behavior
When first receiving an email from a given email address, say "John Doe" from "notifications@example.com", the sender information is stored as a contact. This same sender information is then shown for all subsequent emails from this email address, even when the sender information might be different, for example "Jane Doe" instead of "John Doe".

One example of this is LinkedIn. They always use the same "invitations@linkedin.com" address as the sender email, but the sender name is always "[Name] via LinkedIn". This leads to situations where the contents of the email come from a different person than the name that's shown as the sender.

Expected behavior/code
The included sender name is shown instead of a stored value.

Steps to Reproduce

  1. Send an email from email address X, with the sender name "Sender A"
  2. Send another email from address X, now with sender name "Sender B"
  3. --> Both emails show "Sender A" in the inbox

Environment

  • Message version: 0.8.0

Possible Solution
Use the per-message sender name from the From header for display, instead of the name stored on the Contact. Note this leaves a related issue: the Contact's name is still set from the first email and never updated, which affects recipient autocomplete when picking a contact for a new email.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions