Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Adds a new button to the mailbox toolbar to mark the selected messages as Junk/Not Junk, optionally detaching original messages from spam reports if the message is not junk and learning junk/not junk using various methods (salearn, etc.).

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
drivers
localization
skins/default
CHANGELOG
README
config.inc.php.dist
markasjunk2.js
markasjunk2.php

README

Roundcube Webmail MarkAsJunk2
=============================
This plugin adds "mark as spam" or "mark as not spam" button to the message menu.
Inspiration for this plugin was taken from:
Thomas Bruederli <roundcube@gmail.com> - original RoundCube Mark As Junk plugin

When not in the Junk mailbox:
  Messages are moved into the Junk mailbox and marked as read

When in the Junk mailbox:
  The buttons are changed to "mark as not spam" or "this message is not spam"
  If the message is a spam report with the original email attached then this is detached and saved in the Inbox, the spam report is deleted
  If it is not a spam report then the message is simply moved to the Inbox

This plugin also integrates with the ContextMenu plugin

Install
=======
* Place this plugin folder into plugins directory of RoundCube
* Add markasjunk2 to $rcmail_config['plugins'] in your RoundCube config
NB: When downloading the plugin from GitHub you will need to create a directory called markasjunk2 and place the files in there, ignoring the root directory in the downloaded archive

Config
======
The default config file is plugins/markasjunk2/config.inc.php.dist
Rename this to plugins/markasjunk2/config.inc.php
All config parameters are optional

Spam learning commands
======================
Spamassassin:
  '/usr/bin/sa-learn --spam --username=%u %f' or
  '/usr/bin/sa-learn --spam --prefs-file=/var/mail/%d/%l/.spamassassin/user_prefs %f'

Ham learning commands
=====================
Spamassassin:
  '/usr/bin/sa-learn --ham --username=%u %f' or
  '/usr/bin/sa-learn --ham --prefs-file=/var/mail/%d/%l/.spamassassin/user_prefs %f'
Something went wrong with that request. Please try again.