https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7029
Bug ID: 7029
Summary: custom query to bayes username -> id lookup
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Libraries
Assignee: [email protected]
Reporter: [email protected]
Created attachment 5195
--> https://issues.apache.org/SpamAssassin/attachment.cgi?id=5195&action=edit
Patch for proposed change which adds a config param.
I'm doing a setup where I'm going to put spamassassin checks before the
delivery of the mail, and at this stage the username of receiving user is not
know but only the email address.
The problem with this approach is that the query spamassassin uses for looking
up the id in bayes_vars expects username. So I would like to make a change to
the code that adds a config option where a custom query can be defined. Code
for this change is attached as a patch.
This would allow me to use this query for lookup:
SELECT id FROM bayes_vars WHERE username = spam_user(?)
Instead of the hardcoded one:
SELECT id FROM bayes_vars WHERE username = ?
--
You are receiving this mail because:
You are the assignee for the bug.