How can I write a python plugin for an email client Evolution

I need to write a mail plugin Evolution 3.32.4-alt1 preferably in python. Plugin functionality: If the user sends an email not to the organization’s domain, then a dialog box with a warning about this and the “Cancel” and “Send” buttons should be displayed. How can this be implemented? How to make Evolution recognize the plugin?

Hi,
there are no exposed python bindings for the Evolution itself, I’m
sorry. You can write plugins (or better modules) in C. There is a wiki
page about that, please see:
https://wiki.gnome.org/Apps/Evolution/Extensions

For the thing you are looking for, have an inspiration at:

Bye,
Milan