Skip to content

Not chosing sender identity as per configuration #60

@archerbarrie

Description

@archerbarrie

Using CI version 2.6.4 or 2.6.5 on TB 140.2.1esr the behaviour of CI seems to have changed with regard to the priority of different groups of identities, in particular it no longer adheres to the statement in the configuration under Detection that "Search terms are tried only if the "Selection" settings above don't yield a result".

In evaluating which identity to use as the sender, CI prioritises matching identities/addresses as follows

  1. Identities found in Addressbooks
  2. Identities found in Mailinglists
  3. Addresses/names found in the "Search term" box of Detection
  4. An identity that appears in the recipient list

and this applies to the ALL the entries in the To, Cc and Bcc fields.

CI sets the sender to an identity that is matched, provided that the sender has not already been set from a higher priority group.

Thus a sender identity determined by a match in a mailing list would NOT replace a sender identity from a previously matched address book, but a sender identity determined by a match in an address book WOULD replace a sender identity previously matched in a mailing list.

If a sender identity would be set from the same priority group as currently set, the sender identity may or may not be replaced. The logic for which happens is indeterminate.

One effect of this prioritisation is that the assertion in the configuration, "Detection" section that the highest priority is an identity that appears in the recipient list is no longer true.

I believe that the behaviour has changed fairly recently and that previously an identity that appeared in the recipient list WAS the highest priority but also that if there was no such match then the FIRST identity that matched was used.

Having a priority order when trying to match an identity seems like a good enhancement, however the current order is wrong in that it does not implement the specification and arguably should be inverted. This inversion would restore the priority of an identity that appears in the recipient list as the highest and also reduce the risk of CI chosing a sender identity based on an address in the Cc and Bcc field and this is very unlikely to be correct.

A use case that illustrates that inverting the priority order would be better is as follows. A company has a number of trading names as well as the parent company. Employees are instructed to use a sender identity that corresponds to the trading name relevant to the recipient. Because a recipient is in a mailing list for a particular trading company, the correct sender identity is chosen. However, if an employee of the parent company is blind copied, and that employee is in the address book for the parent company, the sender will be changed to the parent company; this is the wrong outcome. If the priority order was inverted it would not be changed and the sender would be correct.

Issue 54 also relates to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions