Allow plugins to delete all email from a folder after getting user confirmation.
Allow plugins to register actions with the app for use in UI widgets. Create a per-plugin action group as needed, add to main windows using a plugin-specific group name and add/remove registered actions to that.
These interfaces provide a stable, public API for plugins that can provide API stability while the underlying client and engine APIs change.