Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: toxi on July 24, 2013, 08:37:01 AM

Title: sauserprfes not move messages marked as spam to the Spam folder
Post by: toxi on July 24, 2013, 08:37:01 AM
sauserprfes not move messages marked as spam to the Spam folder.
How to make sauserprfes move messages marked as spam to the Spam folder?
Title: Re: sauserprfes not move messages marked as spam to the Spam folder
Post by: JohnDoh on July 24, 2013, 09:34:02 AM
this is not function of either the sauserprefs plugin or spamasassin. you need to setup a filter or delivery rule (usually on your server) to d this
Title: Re: sauserprfes not move messages marked as spam to the Spam folder
Post by: toxi on July 25, 2013, 02:54:05 AM
I installed the plugin movespam, which itself should move messages marked as spam to the Spam folder.

plugins/movespam/config.inc.php
// If this string is at the beginning of the subject, the message will be moved to the junk folder.
$rcmail_config['movespam_subject'] = '[*****SPAM*****]';

// True to move all spam. False to move only new (unread) spam.
$rcmail_config['movespam_seen'] = true;


plugins/movespam/movespam.php
class movespam extends rcube_plugin
{
public $task = 'mail';
private $open_mbox = 'INBOX';
private $spam_mbox = 'JUNK';
private $spam_text = '[*****SPAM*****]';
private $move_seen = true;

... {code} ....
}