SA Bugzilla – Bug 5307
Adding the ability for a user to specify their name in user_prefs would make various useful rules possible
Last modified: 2022-03-06 17:01:02 UTC
If there was a setting that could be added to user_prefs so that a user could specify tokens that appear in their name (first name, last name, aliases and nicknames for example), then this opens up scope for useful rules to be added without needing custom rules enabled for users. For example, a large proportion of spams I receive arrive with fake real names in the To address, so I might get something like To: "Katica Stromain" <real@email.address>. A rule which checks that, if a real name is present, and it does not contain any of the user-specified name tokens, it triggers the rule and adds to the spam score. A simple custom rule regex to do this for a single name token "alex" would be: To =~ /"(?![^"]*\balex)[^"]*"/i Once name tokens like these were available to rules, then I'm sure others will have good ideas on how they could be used, either producing negative scoring tests with their presence or positive scoring tests with their absence. If the user doesn't set any name tokens in their user_prefs, then these rules won't trigger, and they'll be no worse off than they are now.
Closing ancient stale bug.