As ENotif uses the MediaWiki Notification system, we should deprecate AbortEmailNotification hook and let extensions dismiss the watchlist notification via Middleware system we introduced in https://phabricator.wikimedia.org/T387996
Notes:
Multiple extensions use this hook: https://codesearch.wmcloud.org/search/?q=(\b|on)AbortEmailNotification
The use cases are:
- Flow - to stop notifications from flow board.
- SubpageWatchlist - looks like it's overriding ENotif and sends custom email
- Translate blocks sending notifications for RecentChanges with rc_log_type set to translationreview
- WikiBase - blocks sending notifications for RecentChanges with rc_source set to Wikibase