/[smeserver]/rpms/spamassassin/sme10/spamassassin-3.4.1-add-logfile-homedir-options.patch
ViewVC logotype

Annotation of /rpms/spamassassin/sme10/spamassassin-3.4.1-add-logfile-homedir-options.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Fri Nov 27 15:26:32 2020 UTC (4 years ago) by jpp
Branch: MAIN
CVS Tags: spamassassin-3_4_4-8_el7_sme, spamassassin-3_4_4-7_el7_sme, spamassassin-3_4_5-1_el7_sme, spamassassin-3_4_6-1_el7_sme
*** empty log message ***

1 jpp 1.1 commit bb177c93c8852417fc5a522cbcc45abbab4b3c3d
2     Author: Tomas Korbar <tomas.korb@seznam.cz>
3     Date: Thu Jun 7 20:57:07 2018 +0200
4    
5     Add razor log path and home directory option
6    
7     diff --git a/lib/Mail/SpamAssassin/Plugin/Razor2.pm b/lib/Mail/SpamAssassin/Plugin/Razor2.pm
8     index e24252c..935b3ac 100644
9     --- a/lib/Mail/SpamAssassin/Plugin/Razor2.pm
10     +++ b/lib/Mail/SpamAssassin/Plugin/Razor2.pm
11     @@ -165,7 +165,9 @@ sub razor2_access {
12     $rc->{opt} = {
13     debug => (would_log('dbg', $debug) > 1),
14     foreground => 1,
15     - config => $self->{main}->{conf}->{razor_config}
16     + config => $self->{main}->{conf}->{razor_config},
17     + logfile => $self->{main}->{razor_log_file},
18     + razorhome => $self->{main}->{razor_home_dir}
19     };
20     # no facility prefix on this die
21     $rc->do_conf() or die "$debug: " . $rc->errstr;
22     diff --git a/spamd/spamd.raw b/spamd/spamd.raw
23     index 821f658..2afd6bb 100755
24     --- a/spamd/spamd.raw
25     +++ b/spamd/spamd.raw
26     @@ -361,6 +361,8 @@ prepare_for_sighup_restart();
27     # Parse the command line
28     Getopt::Long::Configure("bundling");
29     GetOptions(
30     + 'razor-home-dir=s' => \$opt{'razor_home_dir'},
31     + 'razor-log-file=s' => \$opt{'razor_log_file'},
32     'allow-tell' => \$opt{'tell'},
33     'allowed-ips|A=s' => \@{ $opt{'allowed-ip'} },
34     'auth-ident' => \$opt{'auth-ident'},
35     @@ -1149,6 +1151,8 @@ if ( defined $opt{'pidfile'} ) {
36    
37     my $spamtest = Mail::SpamAssassin->new(
38     {
39     + razor_home_dir => $opt{'razor_home_dir'},
40     + razor_log_file => $opt{'razor_log_file'},
41     dont_copy_prefs => $dontcopy,
42     rules_filename => ( $opt{'configpath'} || 0 ),
43     site_rules_filename => ( $opt{'siteconfigpath'} || 0 ),

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed