remove New: ruleset

This commit is contained in:
hummypkg 2015-06-18 22:47:56 +00:00
parent 0b7de42218
commit e38e90f710
2 changed files with 40 additions and 1 deletions

View File

@ -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)

View File

@ -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: [