Justin,
- a *really* simple SpamAssassin 3.0.0 plugin be written,
that just dumps $scanner->get_uri_list() to STDOUT. (this is *really* easy. honest)
Let me try... just printed the MyPlugin example, let's see how easy it is :)
- create a config file that loads that plugin and sets up a
fake "rule" that runs it.
k
- Then when you want to grab URLs from a spam mail, run
"spamassassin -c configfile -L -t < msg" on it; to process a bigger batch of spam, use "mass-check -c configfile".
- Profit!
Sound really nice .. eh eh
if someone does this, please let me know how they find the doco, etc., and put a page up on the SpamAssassin wiki about it... I'm trying to encourage more plugins ;)
I have just created something that does the trick, but not the fun part ... How do I tell SpamAssassin _not_ to run all the other 'default' rules it find in the default rules path ?
--- [root@fedora /home/chris/surbldumpuri]# cat sa.conf skip_rbl_checks 1
use_bayes 0 use_pyzor 0 use_dcc 0
[root@fedora /home/chris/surbldumpuri]# spamassassin -D -L -t --siteconfigpath=. -p sa.conf < testmsg > /dev/null ---
Above current (very simple test) setup, though -L should prevent the use_pyzor etc checks anyway...
Remark/question: - perldoc PerMsgStatus does not contain "get_uri_list" :) - can I use method's from another plugin (uridnsbl) to test if uri's are already on the rbl?
bye, Chris