projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d91ca8d
)
Create .spamassassin if missing
author
Jamie Cameron
<jcameron@webmin.com>
Sat, 11 Aug 2007 04:51:20 +0000
(
04:51
+0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Sat, 11 Aug 2007 04:51:20 +0000
(
04:51
+0000)
spam/spam-lib.pl
patch
|
blob
|
history
diff --git
a/spam/spam-lib.pl
b/spam/spam-lib.pl
index
5269266
..
4bd300c
100644
(file)
--- a/
spam/spam-lib.pl
+++ b/
spam/spam-lib.pl
@@
-98,6
+98,13
@@
return wantarray ? @rv : $rv[0];
# Update the config file with some directives
sub save_directives
{
+if ($module_info{'usermin'} && $local_cf =~ /^(.*)\/([^\/]+)$/) {
+ # Under Usermin, make sure .spamassassin exists
+ local $spamdir = $1;
+ if (!-d $spamdir) {
+ &make_dir($spamdir, 0755);
+ }
+ }
local @old = ref($_[1]) ? @{$_[1]} : &find($_[1], $_[0]);
local @new = $_[3] ? &make_directives($_[1], $_[2]) : @{$_[2]};
local $i;