On Wed, Jan 28, 2026 at 13:09 (-0600), J Leslie Turriff via tde-users wrote:
On 2026-01-25 16:29:17 J Leslie Turriff via tde-users wrote:
On 2026-01-25 10:00:15 Jim via tde-users wrote:
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
Good question. Of course, the kregexpedit handbook doesn't say one way or another. When I have trouble getting a regexp filter to work I use the built-in editor, but this time it's not helping, though it looks like it should do what I want. See the attached snapshot.
Strangely, overnight this regex has somehow healed itself and is now working as expected.
Sometimes all you need is a good sleep. Maybe regexps do too. ;-)
In any case, glad to hear it is working for you.
Jim