Lines 667-685
B<sa-compile> [options]
Link Here
|
667 |
|
667 |
|
668 |
Options: |
668 |
Options: |
669 |
|
669 |
|
670 |
--list Output base string list to STDOUT |
|
|
671 |
--sudo Use 'sudo' for privilege escalation |
672 |
--keep-tmps Keep temporary files instead of deleting |
673 |
-C path, --configpath=path, --config-file=path |
670 |
-C path, --configpath=path, --config-file=path |
674 |
Path to standard configuration dir |
671 |
Path to standard configuration dir |
|
|
672 |
--cf='config line' Additional line of configuration |
673 |
-D, --debug [area=n,...] Print debugging messages |
674 |
--keep-tmps Keep temporary files instead of deleting |
675 |
--list Output base string list to STDOUT |
675 |
-p prefs, --prefspath=file, --prefs-file=file |
676 |
-p prefs, --prefspath=file, --prefs-file=file |
676 |
Set user preferences file |
677 |
Set user preferences file |
677 |
--siteconfigpath=path Path for site configs |
678 |
--siteconfigpath=path Path for site configs |
678 |
(default: /etc/mail/spamassassin) |
679 |
(default: /etc/mail/spamassassin) |
|
|
680 |
--sudo Use 'sudo' for privilege escalation |
679 |
--updatedir=path Directory to place updates |
681 |
--updatedir=path Directory to place updates |
680 |
(default: @@LOCAL_STATE_DIR@@/compiled/<perlversion>/@@VERSION@@) |
682 |
(default: @@LOCAL_STATE_DIR@@/compiled/<perlversion>/@@VERSION@@) |
681 |
--cf='config line' Additional line of configuration |
|
|
682 |
-D, --debug [area=n,...] Print debugging messages |
683 |
-V, --version Print version |
683 |
-V, --version Print version |
684 |
-h, --help Print usage message |
684 |
-h, --help Print usage message |
685 |
|
685 |
|
Lines 713-747
reload the now-compiled ruleset automatically.
Link Here
|
713 |
|
713 |
|
714 |
=over 4 |
714 |
=over 4 |
715 |
|
715 |
|
716 |
=item B<--list> |
716 |
=item B<-C> I<path>, B<--configpath>=I<path>, B<--config-file>=I<path> |
717 |
|
717 |
|
718 |
Output the extracted base strings to STDOUT, instead of generating |
718 |
Use the specified path for locating the distributed configuration files. |
719 |
the C extension code. |
719 |
Ignore the default directories (usually C</usr/share/spamassassin> or similar). |
720 |
|
720 |
|
721 |
=item B<--sudo> |
721 |
=item B<--cf='config line'> |
722 |
|
722 |
|
723 |
Use C<sudo(8)> to run code as 'root' when writing files to the compiled-rules |
723 |
Add additional lines of configuration directly from the command-line, parsed |
724 |
storage area (which is C<@@LOCAL_STATE_DIR@@/compiled/@@PERL_MAJOR_VER@@/@@VERSION@@> by default). |
724 |
after the configuration files are read. Multiple B<--cf> arguments can be |
|
|
725 |
used, and each will be considered a separate line of configuration. |
725 |
|
726 |
|
726 |
=item B<--quiet> |
727 |
=item B<-D> [I<area,...>], B<--debug> [I<area,...>] |
727 |
|
728 |
|
728 |
Produce less diagnostic output. Errors will still be displayed. |
729 |
Produce debugging output. If no areas are listed, all debugging information is |
|
|
730 |
printed. Diagnostic output can also be enabled for each area individually; |
731 |
I<area> is the area of the code to instrument. |
732 |
|
733 |
For more information about which areas (also known as channels) are |
734 |
available, please see the documentation at |
735 |
L<http://wiki.apache.org/spamassassin/DebugChannels>. |
736 |
|
737 |
=item B<--list> |
738 |
|
739 |
Output the extracted base strings to STDOUT, instead of generating |
740 |
the C extension code. |
729 |
|
741 |
|
730 |
=item B<--keep-tmps> |
742 |
=item B<--keep-tmps> |
731 |
|
743 |
|
732 |
Keep temporary files after the script completes, instead of |
744 |
Keep temporary files after the script completes, instead of |
733 |
deleting them. |
745 |
deleting them. |
734 |
|
746 |
|
735 |
=item B<-C> I<path>, B<--configpath>=I<path>, B<--config-file>=I<path> |
747 |
=item B<-p> I<prefs>, B<--prefspath>=I<prefs>, B<--prefs-file>=I<prefs> |
736 |
|
748 |
|
737 |
Use the specified path for locating the distributed configuration files. |
749 |
Read user score preferences from I<prefs> (usually |
738 |
Ignore the default directories (usually C</usr/share/spamassassin> or similar). |
750 |
C<$HOME/.spamassassin/user_prefs>) . |
|
|
751 |
|
752 |
=item B<--quiet> |
753 |
|
754 |
Produce less diagnostic output. Errors will still be displayed. |
739 |
|
755 |
|
740 |
=item B<--siteconfigpath>=I<path> |
756 |
=item B<--siteconfigpath>=I<path> |
741 |
|
757 |
|
742 |
Use the specified path for locating site-specific configuration files. Ignore |
758 |
Use the specified path for locating site-specific configuration files. Ignore |
743 |
the default directories (usually C</etc/mail/spamassassin> or similar). |
759 |
the default directories (usually C</etc/mail/spamassassin> or similar). |
744 |
|
760 |
|
|
|
761 |
=item B<--sudo> |
762 |
|
763 |
Use C<sudo(8)> to run code as 'root' when writing files to the compiled-rules |
764 |
storage area (which is C<@@LOCAL_STATE_DIR@@/compiled/@@PERL_MAJOR_VER@@/@@VERSION@@> by default). |
765 |
|
745 |
=item B<--updatedir> |
766 |
=item B<--updatedir> |
746 |
|
767 |
|
747 |
By default, C<sa-compile> will use the system-wide rules update directory: |
768 |
By default, C<sa-compile> will use the system-wide rules update directory: |
Lines 755-789
compiled rules the wrong directory, you probably need to rebuild SpamAssassin
Link Here
|
755 |
with different C<Makefile.PL> arguments, instead of overriding sa-compile's |
776 |
with different C<Makefile.PL> arguments, instead of overriding sa-compile's |
756 |
runtime behaviour. |
777 |
runtime behaviour. |
757 |
|
778 |
|
758 |
=item B<--cf='config line'> |
779 |
=item B<-V>, B<--version> |
759 |
|
|
|
760 |
Add additional lines of configuration directly from the command-line, parsed |
761 |
after the configuration files are read. Multiple B<--cf> arguments can be |
762 |
used, and each will be considered a separate line of configuration. |
763 |
|
764 |
=item B<-p> I<prefs>, B<--prefspath>=I<prefs>, B<--prefs-file>=I<prefs> |
765 |
|
766 |
Read user score preferences from I<prefs> (usually |
767 |
C<$HOME/.spamassassin/user_prefs>) . |
768 |
|
769 |
=item B<-D> [I<area,...>], B<--debug> [I<area,...>] |
770 |
|
771 |
Produce debugging output. If no areas are listed, all debugging information is |
772 |
printed. Diagnostic output can also be enabled for each area individually; |
773 |
I<area> is the area of the code to instrument. |
774 |
|
780 |
|
775 |
For more information about which areas (also known as channels) are |
781 |
Print sa-compile version and exit. |
776 |
available, please see the documentation at |
|
|
777 |
L<http://wiki.apache.org/spamassassin/DebugChannels>. |
778 |
|
782 |
|
779 |
=item B<-h>, B<--help> |
783 |
=item B<-h>, B<--help> |
780 |
|
784 |
|
781 |
Print help message and exit. |
785 |
Print help message and exit. |
782 |
|
786 |
|
783 |
=item B<-V>, B<--version> |
|
|
784 |
|
785 |
Print sa-compile version and exit. |
786 |
|
787 |
=back |
787 |
=back |
788 |
|
788 |
|
789 |
=head1 SEE ALSO |
789 |
=head1 SEE ALSO |
790 |
- |
|
|