On Sat, Jan 24, 2026 at 13:39 (-0600), J Leslie Turriff via tde-users wrote:
I'm trying to filter some semi-constant noise from the subject fields of mail items in a subfolder, but I can't get my filter to work. Clearly, I'm doing something fundamentally wrong, but I can't see what.
Here are some examples of Subject fields:
SUSE-SU-2026:0245-1: Security update for php7 openSUSE-SU-2026:10079-1: python311-weasyprint-68.0-1.1 on GA media
and here is the filter that doesn't work (quoted to show where there are spaces):
"(open)?SUSE-SU-[0-9]{4,4}: ?[0-9]{1,5}-[0-9]{1,2}: "
which kregexp interprets as:
Repeated at Most 1 Time: "open" "SUSE-SU-" Repeated Exactly 4 Times: One of the following Characters: from 0 to 9 ":" Repeated at Most 1 Time: " " Repeated From 1 to 5 Times: One of the following Characters: from 0 to 9 "- " Repeated From 1 to 2 Times: One of the following Characters: from 0 to 9 ": "
What am I overlooking/misunderstanding here?
Your regexp gets both of your sample lines with "grep -E" but not plain "grep" (as you probably know).
I don't use kmail, but do the filters allow extended regular expressions, just basic regexps, or something else yet?
Jim