aboutsummaryrefslogtreecommitdiff
path: root/mail/majordomo/files/patch-majordomo.pl
blob: e621377bacbf9fe09c22c95d03724081fe9f0690 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- majordomo.pl.orig	2011-03-08 14:26:57.730103144 +0100
+++ majordomo.pl	2011-03-08 14:27:45.390265818 +0100
@@ -44,7 +44,7 @@
 
 sub main'ParseMailHeader  ## Public
 {
-    local($save1, $save2) = ($*, $/);
+    local($save) = ($/);
     local($FH, *array) =  @_;
     local ($keyw, $val);
 
@@ -54,7 +54,7 @@
     local($package) = caller;
     $FH =~ s/^[^':]+$/$package'$&/;
 
-    ($*, $/) = (1, '');
+    $/ = '';
     $array = $_ = <$FH>;
     s/\n\s+/ /g;
        
@@ -69,7 +69,7 @@
 	    $array{$keyw} = $val;
 	}
     }
-    ($*, $/) = ($save1, $save2); 
+    $/ = $save; 
 }
 
 
@@ -95,14 +95,14 @@
     local($_) = shift;
     1 while s/\([^\(\)]*\)//g; 		# strip comments
     1 while s/"[^"]*"\s//g;		# strip comments"
-    split(/,/);				# split into parts
-    foreach (@_) {
+    my @parts = split(/,/);		# split into parts
+    foreach (@parts) {
 	1 while s/.*<(.*)>.*/$1/;
 	s/^\s+//;
 	s/\s+$//;
     }
 
-    @_;
+    @parts;
 }
 
 # Check to see if a list is valid.  If it is, return the validated list