Skip to content
  • deuce's avatar
    23df8edd
    Add a spamc library for SpamAssassin. · 23df8edd
    deuce authored
    Usage:
    load("spamc.js");
    msg=new SPAMC_Message(mesage_body);
    
    /*
     * Simple checking...
     */
    result=msg.check;
    if(result !== false) {
    	if(result.isSpam)
    		// Handle SPAM here
    }
    
    /*
     * Process (update the message body)
     */
    result=msg.check;
    if(result !== false) {
    	write result.message to file
    }
    23df8edd
    Add a spamc library for SpamAssassin.
    deuce authored
    Usage:
    load("spamc.js");
    msg=new SPAMC_Message(mesage_body);
    
    /*
     * Simple checking...
     */
    result=msg.check;
    if(result !== false) {
    	if(result.isSpam)
    		// Handle SPAM here
    }
    
    /*
     * Process (update the message body)
     */
    result=msg.check;
    if(result !== false) {
    	write result.message to file
    }
Loading