Bug 5307 - Adding the ability for a user to specify their name in user_prefs would make various useful rules possible
Summary: Adding the ability for a user to specify their name in user_prefs would make ...
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Rules (show other bugs)
Version: 3.1.7
Hardware: Other other
: P5 enhancement
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
Depends on:
Reported: 2007-01-24 14:41 UTC by Alex Vallat
Modified: 2007-01-24 14:41 UTC (History)
0 users

Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Vallat 2007-01-24 14:41:25 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.