6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/21/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#3071] Adding SpamAssassin 3+ Preferences
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.._.\ /. .. , _/ | >< \ / \./ ./__._|_/ \ \/ |
Comment
> I've recently been banging on SAM enough that it'll use SA2.x's > required_hits / rewrite_subject / subject_tab prefs or SA3.x's > required_score / rewrite_header prefs depending on which attributes > are enabled in the config/attributes.php file. > > > > > > I touched the following files: > > > > lib/Driver.php - added a setStackedOption function, which functions > like setListOption except it splits only on newline and not on > whitespace (which would be bad since the header-type and tag are > separated by a space). > > > > spam.php - added ability to process multiple entry / multiple data > attributes and pass them to the back end for storage via > setStackedOption. > > > > lib/OptionsForm.php - added ability to convert multiple data > attributes to single entry format for display. Uses getListOption, > though a getStackedOption function that returned an array rather than > a joined string would be simpler, since I immediately have to chop > the string back up into an array. > > > > lib/Driver/spamd.php - added the SA3 prefs to capabilities and a new > mapping for required_score > > > > config/attributes.php.dist - added the new SA3 prefs/attribs, along > with documentation as to which set (SA2 or SA3) to use. > > > > > > This has been lightly tested with the spam_sql.php driver and MySQL > (i.e. it works for me) but is not (yet) in production here. > > > > I haven't looked at the help system at all, though I imagine I'll > have to before I make this Horde installation live. > > > > The patch is against sam-HEAD-2005-11-25. > > > > > > Regards, > > > > Craig. > > ------
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers