Skip to content

Remove "Accepted contacts" option for downloading emails - #6807

Closed
link2xt wants to merge 4 commits into
mainfrom
link2xt/contact-origin
Closed

Remove "Accepted contacts" option for downloading emails#6807
link2xt wants to merge 4 commits into
mainfrom
link2xt/contact-origin

Conversation

@link2xt

@link2xt link2xt commented Apr 16, 2025

Copy link
Copy Markdown
Collaborator

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
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
Comment thread src/contact.rs
IncomingUnknownCc = 0x20,

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

@Hocuri Hocuri Apr 20, 2025

Copy link
Copy Markdown
Collaborator

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.

link2xt added 4 commits May 17, 2025 18:34
…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 commented Nov 18, 2025

Copy link
Copy Markdown
Collaborator Author

Closing stale PR.

As a note, we likely want to discourage setting this value to anything that is not default "all": #7400
Every other value is a "shared mailbox" usecase, if you only fetch chat messages then you need another client fetching the rest.

@link2xt link2xt closed this Nov 18, 2025
@iequidoo

This comment was marked as duplicate.

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.

3 participants