Hello,
that time of the year again, where I okay a diff to bump the filter
protocol and forget to actually double-check the consumers T.T
everything is in the diff below, but basically now filters when logging
to *stderr* can prepend "priority tags" (e.g. "DEBUG|", "WARN|" or ...)
that gets propagated to syslog. this filter does the syslog stuff
itself afaik, so it's a no-op.
okay to commit this and backport to stable?
Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/opensmtpd-filters/spamassassin/Makefile,v
diff -u -p -r1.10 Makefile
--- Makefile 17 Apr 2024 17:10:12 -0000 1.10
+++ Makefile 4 Nov 2026 10:08:00 -0000
@@ -3,6 +3,7 @@ COMMENT = Apache SpamAssassin integratio
V = 0.8
FILTER_NAME = spamassassin
DISTNAME = filter-spamassassin-${V}
+REVISION = 0
HOMEPAGE = https://www.umaxx.net/
CATEGORIES = mail
Index: patches/patch-filter-spamassassin_go
===================================================================
RCS file: patches/patch-filter-spamassassin_go
diff -N patches/patch-filter-spamassassin_go
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-filter-spamassassin_go 4 Nov 2026 10:08:00 -0000
@@ -0,0 +1,18 @@
+handle the smtpd filter-protocol version 0.8 too
+
+the only difference is that messages can be prepended with
+"priority tags". this filter is not logging to stderr though
+so it's effectively a no-op.
+
+Index: filter-spamassassin.go
+--- filter-spamassassin.go.orig
++++ filter-spamassassin.go
+@@ -211,7 +211,7 @@ func run() {
+ for in.Scan() {
+ f := strings.Split(in.Text(), "|")
+ t, ver, ev, sid := f[0], f[1], f[4], f[5]
+- if (t != "filter" && t != "report") || ver != "0.7" {
++ if (t != "filter" && t != "report") || ver != "0.8" {
+ l3.Err(fmt.Sprintln(sid, "protocol", t, ver))
+ return
+ }