Aaron Grewell wrote: > Hi all, > I'm using SA 3.0.4, and I wanted to keep my score modifications in a separate > file from the rest of my configuration. I removed my score changes from > local.cf and put them in a separate file called custom_scores.txt, then put > include custom_scores.txt in local.cf. Now SA will no longer lint my config > properly, and fails on each score line that isn't directly included in > local.cf. What's the point of include if I can't actually put config > directives in the included file? >
Well, realistically the only place you should ever need include is in user_prefs. Using include completely redundant at the local.cf level, as SA automatically parses /etc/mail/spamassassin/*.cf. Rather than use custom_scores.txt, just use custom_scores.cf and put it alongside local.cf. Also note that SA parses files within the director in alphabetic order, so unless your name changes, custom_scores.cf will be parsed before local.cf. Based it being redundant, nobody is likely to have tested using include in local.cf. This feature was implemented to support expanding user_prefs. Here's the bug discussion that caused include to be added in the first plage: http://issues.apache.org/SpamAssassin/show_bug.cgi?id=1244 Also, 3.0.4 is 3 versions behind the current release (3.0.5, 3.1.0, 3.1.1). There have been some bugs fixed in the include feature since the 3.0.4 release. Most notable would be: http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4158 Which affects anyone using include and --virtual-config-dir on SA versions under 3.1.0.