--- SpamAssassin/Conf.pm 2006-08-12 18:08:44.000000000 +0200 +++ Conf.pm 2006-11-13 10:37:16.000000000 +0100 @@ -2330,6 +2330,52 @@ type => $CONF_TYPE_STRING }); +#### Start of modification (last modified on 20061109). +=item bayes_sql_custom_query query + +This option gives you the ability to create a custom SQL query to +retrieve username. In order to work correctly your query should +return only one value, the desired username. In addition, there +are several "variables" that you can use as part of your query, +these variables will be substituted for the current values right +before the query is run. The current allowed variables are: + +=over 2 + +=item _USERNAME_ + +The current user's username. + +=item _DOMAIN_ + +The portion after the @ as derived from the current user's username, this +value may be null. + +=back + +The query must be one continuous line in order to parse correctly. + +Here is an example query, please note that it is broken up for easy +reading, in your config it should be one continuous line. + +=over 1 + +=item Current default query: + +C