Sélectionner un carnet l'adresse pour une adresse courriel

Pardon, mais je répondrai en anglais - c’est plus facile pour moi, et autres peuvent commenter. Repondez en francais si vous voulez.

You need a filter, but a very specific one. This addon adds extra filter features. I doubt if it can do what you want, but I’ve never used it so I don’t know.

Note that Filtaquilla is not yet compatible with TB78. These is a beta version, or it might be worth downgrading to v68 if it meets your requirement.

It would be possible, even fairly easy, to write an addon to do what you want; AFAICS the APIs (interfaces de programmation d’applications) all exist. You might find someone to write it for you.

You could use the standard filter system to detect this spam, but it will not check address books. Instead you could set up a filter like this:

For the specific account:
  When getting new mail:
    Match all of the following:
      Sender - is not - Address 1
      Sender - is not - Address 2
      Sender - is not - Address 3
      ...
    Move message to account-spam-folder

When you add an ‘allowed’ address to your address book you would have to add it to the list.

(It would be possible to build the filter from the address list outside TB, but that requires programming too.)

Hope that gives you some ideas.