From e38e90f7102a4c38943d0b224975c4c46ba7644b Mon Sep 17 00:00:00 2001 From: hummypkg Date: Thu, 18 Jun 2015 22:47:56 +0000 Subject: [PATCH] remove New: ruleset --- CONTROL/control | 2 +- webif/plugin/sweeper/schema.js | 39 ++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/CONTROL/control b/CONTROL/control index b4b9b6d..b3d140a 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: sweeper Priority: optional Section: misc -Version: 2.0.8-2 +Version: 2.0.8-3 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: webif(>=1.2.2-6) diff --git a/webif/plugin/sweeper/schema.js b/webif/plugin/sweeper/schema.js index 58425eb..1c3bd64 100644 --- a/webif/plugin/sweeper/schema.js +++ b/webif/plugin/sweeper/schema.js @@ -307,6 +307,45 @@ var macros = { } ] }, + newk: { + desc: 'Remove New: prefix', + rules: [ + { + "raw": "title New:* action {settitle {%orig%replace,New: ,,}}", + "name": "Remove New: prefix.", + "type": "file", + "enabled": "1", + "criteria": [ + { + "negate": 0, + "cmd": "title", + "arg": "New:*" + } + ], + "action": { + "cmd": "settitle", + "arg": "%orig%replace,New: ,," + } + }, + { + "raw": "title New:* action {settitle {%orig%replace,New: ,,}}", + "name": "Unnamed rule", + "type": "folder", + "enabled": "1", + "criteria": [ + { + "negate": 0, + "cmd": "title", + "arg": "New:*" + } + ], + "action": { + "cmd": "settitle", + "arg": "%orig%replace,New: ,," + } + } + ] + }, example: { desc: 'Example rules', rules: [