Changeset 168
- Timestamp:
- 09/01/07 18:14:09 (16 months ago)
- Files:
-
- 1 modified
-
trunk/system_scripts/listMailer.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system_scripts/listMailer.pl
r160 r168 117 117 my $sth = $dbh->prepare($sql); 118 118 $sth->execute; 119 my @row;119 my $row; 120 120 my @result; 121 while( @row = $sth->fetchrow_array) {122 push(@result, $row [0]);121 while( $row = $sth->fetchrow_hashref) { 122 push(@result, $row->{recp}); 123 123 } 124 124 $sth->finish; 125 undef( @row);125 undef($row); 126 126 undef($id); 127 127 undef($sql); … … 130 130 } 131 131 132 my @row = $sth->fetchrow_array;133 $mail->header_set("Reply-To", "$list");132 my $row = $sth->fetchrow_hashref; 133 #$mail->header_set("Reply-To", "$list"); 134 134 $sth->finish(); 135 if( $row [3]eq 'n' ) {136 if( 0 == isSenderAllowed($row [0], $sender) ) {135 if( $row->{public} eq 'n' ) { 136 if( 0 == isSenderAllowed($row->{id}, $sender) ) { 137 137 # Not subscribed to list, so he can't post 138 138 my $e_send_to = MIME::Entity->build( … … 150 150 } else { 151 151 # Send Mail to all subscribed 152 @addresses = getAllAddresses($row [0]);152 @addresses = getAllAddresses($row->{id}); 153 153 sendto($mail->as_string , $sender); 154 154 } 155 155 } else { 156 156 # Send Mail to all subscribed 157 @addresses = getAllAddresses($row [0]);157 @addresses = getAllAddresses($row->{id}); 158 158 sendto($mail->as_string , $sender); 159 159 }
