I'm waiting for 2 buttons in menu with sign "Mark as SPAM" and Mark as NonSPAM" after presing which i could do some action with message maybe send to remote account or something like this. The best solution it will be to leave action blank to edit by admin when installing path.
Here i have one more Q. Could you write what is the best way to "learn" spam system via php interface?
- send message to remote account and there run spamassassin via procmail or cron task
- move message to hidden folder in user maildir and then cron task will search user folder and do some action
- direct from php execute shell command (sa-learn for example)
- ... other
I'm using spamassassin with all userprefs and bayes in SQL. Learning in done right now by cron script like this "sa-learn -u 'email_address' --spam message.file
i'd like that too.
I would like this option also!
i'd like that too.
I have implemented a plug-in for SquirrelMail that uses Option #2. When the user clicks "Train as Junk", the message is moved to a different IMAP folder (usually called "Train as Junk"). Normally, the user is not subscribed to this folder, so isn't aware that it exists. "Train as Not Junk" transfers messages to the "Train as Not Junk" folder. Once every two minutes, a cron job checks the folder, trains and redelivers messages found there. I think something similar would work nicely in Roundcube, but this kind of addition would be better done as a plug-in -- once an extensibility model is defined, of course. ;)
If you're curious about how I did this for SquirrelMail, have a look here: http://www.convoglio.com/crm114/
-Steve