1 |
slords |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-ezmlm-web-1.1.2/root/etc/e-smith/events/actions/ezmlm-update mezzanine_patched_smeserver-ezmlm-web-1.1.2/root/etc/e-smith/events/actions/ezmlm-update |
2 |
|
|
--- smeserver-ezmlm-web-1.1.2/root/etc/e-smith/events/actions/ezmlm-update 2006-03-08 12:20:30.172533181 +1100 |
3 |
|
|
+++ mezzanine_patched_smeserver-ezmlm-web-1.1.2/root/etc/e-smith/events/actions/ezmlm-update 2006-03-08 12:20:23.564673035 +1100 |
4 |
|
|
@@ -1,6 +1,6 @@ |
5 |
|
|
#!/usr/bin/perl -w |
6 |
|
|
#---------------------------------------------------------------------- |
7 |
|
|
-# copyright (C) 2000-2002 Gormand Pty Ltd |
8 |
|
|
+# copyright (C) 2000-2006 Gormand Pty Ltd |
9 |
|
|
# copyright (C) 2002,2006 Mitel Networks Corporation |
10 |
|
|
# |
11 |
|
|
# This program is free software; you can redistribute it and/or modify |
12 |
|
|
@@ -86,14 +86,20 @@ |
13 |
|
|
{ |
14 |
|
|
my $list = new Mail::Ezmlm; |
15 |
|
|
|
16 |
|
|
- my $listOwner = $list->prop("Owner"); |
17 |
|
|
- |
18 |
|
|
- $list->make(-dir => $listHome, |
19 |
|
|
+ my $thislist = $list->make( |
20 |
|
|
+ -dir => $listHome, |
21 |
|
|
-qmail => $listAlias, |
22 |
|
|
-name => $listName, |
23 |
|
|
-host => $listHost, |
24 |
|
|
-user => '', |
25 |
|
|
- -switches => 'aBdfgHiJklMnOpQrStuWx' . " -5 $listOwner" ); |
26 |
|
|
+ -switches => 'aBdfgHiJklMnOpQrStuWx' |
27 |
|
|
+ ); |
28 |
|
|
+ |
29 |
|
|
+ die "List creation failed\n" unless $thislist; |
30 |
|
|
+ |
31 |
|
|
+ my $listOwner = $list->prop("Owner"); |
32 |
|
|
+ |
33 |
|
|
+ $list->update("5 $listOwner"); |
34 |
|
|
} |
35 |
|
|
elsif ( $event eq "mailinglist-delete" ) |
36 |
|
|
{ |