Re: sa-learn using event notifications

2018-03-12 Thread Arnaldo Viegas de Lima
That will depend on the retraining process complexity as well as the size of the messages. My guess is that without some real world testing it will be difficult to have a definitive answer. Arnaldo. > On Mar 12, 2018, at 2:49 PM, Luca Olivetti wrote: > > El 12/03/18 a les 18:43, Arnaldo Vie

Re: sa-learn using event notifications

2018-03-12 Thread Luca Olivetti
El 12/03/18 a les 18:43, Arnaldo Viegas de Lima ha escrit: I see a 2 ways to handle it: - Enqueue for later processing - Make notifyd pass the job to another process (like a daemon) Yes, I thought about those two options (well, only the first one actually, since notifyd can only spawn an exter

Re: sa-learn using event notifications

2018-03-12 Thread Arnaldo Viegas de Lima
Ah… we use different meaning for the “SPAM” folder! For me it’s where I place mail that was wrongly classified as HAM. Mail classified as SPAM go to the “quarantine” folder (that get’s purged by Cyrus after X days). You are talking about moving files out of “quarantine” and using a notification

Re: sa-learn using event notifications

2018-03-12 Thread Luca Olivetti
El 12/03/18 a les 18:07, Arnaldo Viegas de Lima ha escrit: I run a separate daemon that periodically checks the spam folder, perform the necessary “training” actions and then remove the message. That's what I've been doing for many years (using a couple of shared folder where users have to mo

Re: sa-learn using event notifications

2018-03-12 Thread Arnaldo Viegas de Lima
I run a separate daemon that periodically checks the spam folder, perform the necessary “training” actions and then remove the message. > On Mar 12, 2018, at 1:44 PM, Luca Olivetti wrote: > > I wrote a simple program that manages the vnd.cmu.MessageMove event to run > sa-learn when a message i

sa-learn using event notifications

2018-03-12 Thread Luca Olivetti
I wrote a simple program that manages the vnd.cmu.MessageMove event to run sa-learn when a message is moved into or out of the spam folder. I'm processing it synchronously (i.e., the program starts spawned by notifyd and doesn't terminate until sa-learn exits). Given that sa-learn takes a few sec