This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* MarkAsJunk2 JS events example | |
* This is an example of how to interact with the markasjunk2 JS event | |
* markasjunk2-update to change the spam/ham options shown for specific | |
* folders | |
* | |
* @version 0.1 | |
* @author Philip Weir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* MarkAsJunk2 run multiple drivers | |
* WARNING: Use with extreme caution, running multiple drivers in succession is dangerous! | |
* Some drivers destroy the original message and create a new one, altering the message ID ($UID) | |
* and so multiple drivers must be run in a specific order. Extra step by step error checking may | |
* also be needed to prevent errors from cascading from one driver to another. | |
* | |
* In this example the edit_headers driver is used to add/remove a [SPAM] tag from the message |