button to delete bayes_* file (SKINS)

Version 1.34


button to delete bayes files, to allow easy removal when they get too big. Button to remove them is found at the bottom of the SpamAssassin page. This button is simply a POST form that uses CMD_FILE_MANAGER, which is already implemented. It will isssue a standard delete command, as if it were the FileManager form. The resulting page will be the results from the FileManager. If the files in question do not exist, an error saying so will appear. Users can ignore this error if they've hit the button already, or files simply were not there. Files in question are in: /home/username/.spamassassin the files: auto-whitelist bayes_journal bayes_seen bayes_toks SKINS: user/email/spamassassin.html added to the bottom: <br> <br> <hr width=50%><br> This button will remove data learned by spamassassin.<br>It will free up some space, but will reset any<br>learned progress SpamAssassin has previously made. <form name=tableform action='/CMD_FILE_MANAGER/' method='POST'> <input type=hidden name=select0 value="/.spamassassin/auto-whitelist"> <input type=hidden name=select1 value="/.spamassassin/bayes_seen"> <input type=hidden name=select2 value="/.spamassassin/bayes_journal"> <input type=hidden name=select3 value="/.spamassassin/bayes_toks"> <input type=hidden name=action value="multiple"> <input type=hidden name=button value="delete"> <input type=hidden name=overwrite value="no"> <input type=hidden name=path value="/.spamassassin"> <input type=submit value="Delete Bayes Data"> </form>

Interested to try DirectAdmin? Get a 30-day Free Trial!