Should Not Contain ${result.stdout} DBL_PHISH (
Should Not Contain ${result.stdout} URIBL_BLACK (
+SURBL Example.com domain image false
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/urlimage.eml
+ Should Contain ${result.stdout} RSPAMD_URIBL_IMAGES
+ Should Not Contain ${result.stdout} DBL_SPAM (
+ Should Not Contain ${result.stdout} RSPAMD_URIBL (
+ Should Not Contain ${result.stdout} DBL_PHISH (
+ Should Not Contain ${result.stdout} URIBL_BLACK (
+
*** Keywords ***
Surbl Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/surbl.conf
suffix = "test.uribl";
check_dkim = true;
check_emails = true;
+ images = false;
process_script =<<EOD
function(url, suffix)
local cr = require "rspamd_cryptobox_hash"
URIBL_DROP = "127.0.0.9";
}
}
+ "RSPAMD_URIBL_IMAGES" {
+ suffix = "test.uribl";
+ check_dkim = true;
+ check_emails = true;
+ images = true;
+ process_script =<<EOD
+ function(url, suffix)
+ local cr = require "rspamd_cryptobox_hash"
+ local h = cr.create(url):base32():sub(1, 32)
+ return string.format("%s.%s", h, suffix)
+end
+EOD;
+ }
}
}
\ No newline at end of file