Skip to content

Remove "Accepted contacts" option for downloading emails #6807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Apr 16, 2025

Also misc contact origin simplifications because fine-grained contact origins were not really used. See commit messages.

Past member commit still needs a test.

link2xt added 3 commits April 16, 2025 01:23
…igin

Contacts are created with IncomingUnknownTo origin instead of IncomingTo now
even if the message is from a known contact.

Removed IncomingTo, IncomingCc, OutgoingBcc, OutgoingCc, IncomingUnknownCc origins.
@link2xt link2xt force-pushed the link2xt/contact-origin branch from a4c3d16 to 4b85dd8 Compare April 16, 2025 01:23
@link2xt link2xt marked this pull request as draft April 16, 2025 01:27
Hidden = 0x8,

/// From: of incoming messages of unknown sender
IncomingUnknownFrom = 0x10,

/// Cc: of incoming messages of unknown sender
IncomingUnknownCc = 0x20,

/// To: of incoming messages of unknown sender
IncomingUnknownTo = 0x40,
Copy link
Collaborator

@Hocuri Hocuri Apr 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the case before this PR already, but, for my understanding: The order here determines which authnames are used, i.e. "better" origins overwrite the names of "worse" origins, with an exception that IncomingUnknownFrom may overwrite any other authname. (The origin also determines that contacts with at least IncomingReplyTo origin are shown in the contact list.)

I find the order super weird:

  • IncomingUnknownFrom has the lowest priority of all. I would expect it to have a high priority, because this is obviously the name that comes directly from this contact.
  • I would expect IncomingUnkwnownTo to have a lower priority, because it's a "gossiped" name - the displayname was in the "To" header in a message coming from some other contact.
  • Same for IncomingReplyTo, because it's not guaranteed that this message actually came from the contact who controls the IncomingReplyTo address.

Is there something I'm missing?

In any case, I'm not saying we have to change this now, can come after multi-transport.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants