Cron is more efficient, yes, but I really like this idea. I use spamprobe and have a cron tab setup daily to do this kind of thing, but having it done instantly would be really useful for many reasons.
Sometimes I get bursts of new spam, I dont want to wait for the cron script, now I have to remote login and run the script manually ... yuck.
I have found it tedious to setup each user's cron scripts ... so I only use spamprobe for some users -- (very SMALL server ... only 10 people on it) ... -- If it was done as a hook to IMAP then I think it would be easier to configure a new user and create a true system wide spamprobe tool.
I can imagine many other uses for this technology ... say Print on Move, Broadcast Forward emails without having to use Forward ... just drag& drop ..., maybe an spoof@ebay.com folder where I just drag my daily spoofs and off they go. I bet creative minds can come up with LOTS of ways this can be used (and abused).
Of course, with any new toy, you have to watch out for abusing it ... but that doesnt always mean its a bad capibility to have ...
----------- QUOTE ------------ Adam M. Dunn wrote:
For example, this would be EXTREMEMLY useful as a spam learning hook. Take a scenario where each user has their own spamassassin bayes database, and you want to give the users the ability to train their own database based on what they think is SPAM. It would be nice to give all the users a folder called Spam, and tell them to just copy/move mail into that folder, and spamassassin will automatically learn about it.
Doing so via cron is much mroe efficient as you will only have to initialize SA's database once and learn from multiple messages. And if you make another cronjob that periodically wipes out that mailbox, both you and your users will be happy.
Cheers, -jkt