This plugin will discard a message by pretending that the message was queued.
It is designed to be used by other plugins which request the message be discard by setting a connection or transaction note that this plugin checks.
It uses the 'queue' hook, so it runs after all the plugins that hook on
If you use the 'quarantine' plug-in then this plugin should run after it.
USE THIS PLUGIN WITH CARE!
Enable by adding a
queue/discard entry in
config/plugins before your
other queue plugins that perform actual deliveries.
connection.notes.discard = [ 1 | true ];
connection.transaction.notes.discard = [ 1 | true ];