diff --git a/antispamwizard.cpp b/antispamwizard.cpp index 5e0312439..5937bf482 100644 --- a/antispamwizard.cpp +++ b/antispamwizard.cpp @@ -582,7 +582,8 @@ void AntiSpamWizard::ConfigReader::readAndMergeConfig() for (int i = 1; i <= user_registeredTools; i++) { KConfigGroup toolConfig( mConfig, groupName.arg( i ) ); - mergeToolConfig( readToolConfig( toolConfig ) ); + if( !toolConfig.readBoolEntry( "HeadersOnly", false ) ) + mergeToolConfig( readToolConfig( toolConfig ) ); } // Make sure to have add least one tool listed even when the // config file was not found or whatever went wrong diff --git a/antispamwizard.h b/antispamwizard.h index fe8898f39..28353f0d2 100644 --- a/antispamwizard.h +++ b/antispamwizard.h @@ -204,8 +204,8 @@ namespace KMail { public: ConfigReader( WizardMode mode, QValueList & configList ); + ~ConfigReader( ); - ~ConfigReader( ); QValueList & getToolList() { return mToolList; } void readAndMergeConfig(); @@ -238,7 +238,7 @@ namespace KMail { /* generic checks if any option in a page is checked */ bool anySpamOptionChecked(); bool anyVirusOptionChecked(); - + /* convenience function calling the appropriate filter manager method */ const QString uniqueNameFor( const QString & name );