tflags publish <= What is this good for? (Re: Rule for: Subject contains email address from To: header?)
Benoit Panizzon <[email protected]> Mon, 1 Jun 2026 13:56:41 +0200
| Newsgroups | gmane.mail.spam.spamassassin.general |
|---|---|
| Organization | ImproWare AG |
| Message-ID | <[email protected]> |
Hi
I figured out the culpit why a rule did not work was tflags publish
Actual finding in trying to get the shipped rule TO_IN_SUBJ to match
anything. Just created a new rule with one of the regexp:
header TEST_EMAIL_SUBJ_TO ALL =3D~ /\nSubject:(?=3D[^\n]{0,20=
0}@)[^\n]{0,200}([a-z][a-z0-9_.]{3,80}@(?:[a-z0-9_]{1,80}\.){1,4}[a-z]{2,30=
})(?:[^\n]+\n)*To:\s+[^\n]{0,100}\1[^a-z0-9.]/ism
describe TEST_EMAIL_SUBJ_TO Testing: Email in Subject then To
score TEST_EMAIL_SUBJ_TO 1
tflags TEST_EMAIL_SUBJ_TO publish
When I remove the tflags line, the rule is run and matches as
expected when invoking SpamAssassin from MIMEDefang.
When I keep the tflags line, then the rule seems to only run when
calling SpamAssassin from command line.
So I wonder if there might be some setting somewhere to cause
spamassassin not running rules with a specific tflags in some
situations?
Mit freundlichen Gr=C3=BCssen
-Beno=C3=AEt Panizzon-
--=20
I m p r o W a r e A G - Leiter Commerce Kunden
______________________________________________________
Zurlindenstrasse 29 Tel +41 61 826 93 00
CH-4133 Pratteln Fax +41 61 826 93 01
Schweiz Web http://www.imp.ch
______________________________________________________