Install claws-mail-python-plugin by entering the following commands in the terminal:
sudo apt update sudo apt install claws-mail-python-plugin
Python plugin and console for Claws Mail
This plugin provides Python scripting access to Claws Mail. . It features a console for testing and help about available functions. Scripts can be saved for later usage as new menu items or to be automatically loaded on startup.