Anno domini 2026 Sun, 25 Jan 14:44:47 -0600 J Leslie Turriff via tde-users scripsit:
On 2026-01-24 14:00:29 Dr. Nikolaus Klepp via tde-users wrote:
Anno domini 2026 Sat, 24 Jan 13:39:59 -0600
J Leslie Turriff via tde-users scripsit:
I'm trying to filter some semi-constant noise from the subjectfields 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?Leslie
you might have to add a ".*" ath end of your regex
Nik
Ah, but that would include that text in the match, and I want the filter to leave that part alone.
hm ... I'm not sure if I understand what you want to achieve. "Filter" just applies a pattern. If it matchesm it applies the selected operation to the mail. It does not change the mail.
If you want to change the mails content, then you have to pipe it through a program (as a filter action) that does stuff with the mail. I have attached my "sanitizer" as an example on how to do that.
Nik
Leslie ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...