SA Bugzilla – Bug 1392
need mechanism to set languages_filename when using config_text
Last modified: 2003-02-02 19:43:51 UTC
If you're trying to abstract SpamAssassin from the file-oriented implementation, the primary mechanism is to use a config_text parameter to the new Mail::SpamAssassin object. But in the init method of SpamAssassin.pm, the code to set $self->{language_filename} is inside a !defined $self-> {config_text}. So, there's no way to use TextCat functionality if you're using config_text. The workaround: $spam->{languages_filename} = $languages_filename; works, but is gross. At least I think this is the case; I haven't checked with anybody or the list yet.
ok, now documented. You can pass this to the Mail::SA ctor as well. BTW note to SA developers: this is why using external, specially-parsed files -- instead of normal config files with a new commmand to start each line -- is bad. (Although looking at "languages" I haven't a clue what format that is, so maybe it isn't so clear-cut. ;)