You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Global filters are defined on the Settings page and are automatically applied to all articles from all feeds.
34
+
Since Miniflux 2.2.10, filtering rules can be defined for each feed and globally on the Settings page.
34
35
35
-
- Each rule must be on a separate line.
36
-
- Duplicate rules are allowed. For example, having multiple `EntryTitle` rules is possible.
37
-
- The provided regex should use the [RE2 syntax](https://golang.org/s/re2syntax).
38
-
- The order of the rules matters as the processor stops on the first match for both Block and Keep rules.
36
+
There are two types of rules:
37
+
-**Block Rules**: Ignore articles that match the regex.
38
+
-**Keep Rules**: Retain only articles that match the regex.
39
39
40
-
Rule Format:
40
+
### Rules Format and Syntax
41
+
42
+
Example:
41
43
42
44
```
43
45
FieldName=RegEx
44
46
FieldName=RegEx
45
47
FieldName=RegEx
46
48
```
47
49
50
+
- Each rule must be on a separate line.
51
+
- Duplicate rules are allowed. For example, having multiple `EntryTitle` rules is possible.
52
+
- The provided regex should use the [RE2 syntax](https://golang.org/s/re2syntax).
53
+
- The order of the rules matters as the processor stops on the first match for both Block and Keep rules.
54
+
- Invalid rules are ignored.
55
+
48
56
Available Fields:
49
57
50
58
-`EntryTitle`
@@ -63,35 +71,29 @@ The `EntryDate` field supports the following date patterns:
63
71
-`before:YYYY-MM-DD` - Match entries published before a specific date.
64
72
-`after:YYYY-MM-DD` - Match entries published after a specific date.
65
73
-`between:YYYY-MM-DD,YYYY-MM-DD` - Match entries published between two dates.
74
+
-`max-age:duration` - Match entries that are not older than a specific duration (e.g., `max-age:7d` for 7 days). Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h", "d".
66
75
67
-
Date format must be YYYY-MM-DD, for example: 2024-01-01.
76
+
Date format must be `YYYY-MM-DD`, for example: `2024-01-01`.
68
77
69
-
### Block Rules
78
+
Block rules examples:
70
79
71
-
Block rules ignore articles that match a single rule.
72
-
73
-
For example, the rule `EntryTitle=(?i)miniflux` will ignore all articles with a title that contains the word Miniflux (case insensitive).
74
-
75
-
Here are additional examples you can consider:
76
80
```regex
77
-
EntryDate=future # Ignore articles with future publication dates.
78
-
EntryDate=before:2024-01-01 # Ignore articles published before January 1st, 2024.
79
-
EntryTitle=(?i)\b(save|take|get)\s+\$\d{2,5}\b # Ignore articles with “Save $50”, “Get $100…” in the title
80
-
EntryTitle=(?i)\$\d{2,5}\s+(off|discount)\b # Ignore articles with “$50 off”
81
-
EntryTitle=(?i)\bbest\s+.*\bdeals?\b # Ignore articles with “Best Foobar Deals …”
82
-
EntryTitle=(?i)\bgift\s+(guide|ideas|list)\b # Ignore articles that look like listicles
81
+
EntryDate=future # Ignore articles with future publication dates
82
+
EntryDate=before:2024-01-01 # Ignore articles published before January 1st, 2024
83
+
EntryDate=max-age:30d # Ignore articles older than 30 days
84
+
EntryTitle=(?i)miniflux # Ignore articles with "Miniflux" in the title
85
+
EntryTitle=(?i)\b(save|take|get)\s+\$\d{2,5}\b # Ignore articles with "Save $50", "Get $100…" in the title
86
+
EntryTitle=(?i)\$\d{2,5}\s+(off|discount)\b # Ignore articles with "$50 off"
87
+
EntryTitle=(?i)\bbest\s+.*\bdeals?\b # Ignore articles with "Best Foobar Deals…"
88
+
EntryTitle=(?i)\bgift\s+(guide|ideas|list)\b # Ignore articles that look like listicles
83
89
```
84
90
85
-
### Keep Rules
86
-
87
-
Keep rules retain articles that match a single rule.
91
+
Keep rules examples:
88
92
89
-
For example, the rule `EntryTitle=(?i)miniflux` will keep only the articles with a title that contains the word Miniflux (case insensitive).
90
-
91
-
Examples:
92
-
93
-
-`EntryDate=between:2024-01-01,2024-12-31` will keep only articles published in 2024.
94
-
-`EntryDate=after:2024-03-01` will keep only articles published after March 1st, 2024.
93
+
```regex
94
+
EntryDate=between:2024-01-01,2024-12-31 # Keep only articles published in 2024
95
+
EntryDate=after:2024-03-01 # Keep only articles published after March 1st, 2024
96
+
```
95
97
96
98
### Global Rules & Feed Rules Ordering
97
99
@@ -102,7 +104,7 @@ Rules are processed in this order:
0 commit comments