You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2018/09/17 17:10:17 UTC

svn commit: r1841097 - in /spamassassin/trunk: lib/spamassassin-run.pod spamd/spamd.raw

Author: hege
Date: Mon Sep 17 17:10:16 2018
New Revision: 1841097

URL: http://svn.apache.org/viewvc?rev=1841097&view=rev
Log:
Add some --pre usage documentation too..

Modified:
    spamassassin/trunk/lib/spamassassin-run.pod
    spamassassin/trunk/spamd/spamd.raw

Modified: spamassassin/trunk/lib/spamassassin-run.pod
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/spamassassin-run.pod?rev=1841097&r1=1841096&r2=1841097&view=diff
==============================================================================
--- spamassassin/trunk/lib/spamassassin-run.pod (original)
+++ spamassassin/trunk/lib/spamassassin-run.pod Mon Sep 17 17:10:16 2018
@@ -43,6 +43,7 @@ Options:
  --siteconfigpath=path             Path for site configs
                                    (def: /etc/mail/spamassassin)
  --cf='config line'                Additional line of configuration
+ --pre='config line'               Additional line of ".pre" (prepended to configuration)
  -x, --nocreate-prefs              Don't create user preferences file
  -e, --exit-code                   Exit with a non-zero exit code if the
                                    tested message was spam
@@ -251,6 +252,15 @@ example:
 
         spamassassin -t --cf="body NEWRULE /text/" --cf="score NEWRULE 3.0"
 
+=item B<--pre='config line'>
+
+Add additional lines of .pre configuration directly from the command-line,
+parsed before the configuration files are read.  Multiple B<--pre> arguments
+can be used, and each will be considered a separate line of configuration. 
+For example:
+
+        spamassassin -t --pre="loadplugin Mail::SpamAssassin::Plugin::Foobar"
+
 =item B<-p> I<prefs>, B<--prefspath>=I<prefs>, B<--prefs-file>=I<prefs>
 
 Read user score preferences from I<prefs> (usually C<$HOME/.spamassassin/user_prefs>).

Modified: spamassassin/trunk/spamd/spamd.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/spamd/spamd.raw?rev=1841097&r1=1841096&r2=1841097&view=diff
==============================================================================
--- spamassassin/trunk/spamd/spamd.raw (original)
+++ spamassassin/trunk/spamd/spamd.raw Mon Sep 17 17:10:16 2018
@@ -3364,6 +3364,12 @@ Add additional lines of configuration di
 after the configuration files are read.   Multiple B<--cf> arguments can be
 used, and each will be considered a separate line of configuration.
 
+=item B<--pre='config line'>
+
+Add additional lines of .pre configuration directly from the command-line,
+parsed before the configuration files are read.  Multiple B<--pre> arguments
+can be used, and each will be considered a separate line of configuration.
+
 =item B<-d>, B<--daemonize>
 
 Detach from starting process and run in background (daemonize).