Changeset 168

Show
Ignore:
Timestamp:
09/01/07 18:14:09 (16 months ago)
Author:
tgenannt
Message:

- Removed Reply-To Header
- Changed to fetchrow_hashref

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system_scripts/listMailer.pl

    r160 r168  
    117117 my $sth = $dbh->prepare($sql); 
    118118 $sth->execute; 
    119  my @row; 
     119 my $row; 
    120120 my @result; 
    121  while( @row = $sth->fetchrow_array) { 
    122   push(@result, $row[0]); 
     121 while( $row = $sth->fetchrow_hashref) { 
     122  push(@result, $row->{recp}); 
    123123 } 
    124124 $sth->finish; 
    125  undef(@row); 
     125 undef($row); 
    126126 undef($id); 
    127127 undef($sql); 
     
    130130} 
    131131 
    132 my @row = $sth->fetchrow_array; 
    133 $mail->header_set("Reply-To", "$list"); 
     132my $row = $sth->fetchrow_hashref; 
     133#$mail->header_set("Reply-To", "$list"); 
    134134$sth->finish(); 
    135 if( $row[3] eq 'n' ) { 
    136  if( 0 == isSenderAllowed($row[0], $sender) ) { 
     135if( $row->{public} eq 'n' ) { 
     136 if( 0 == isSenderAllowed($row->{id}, $sender) ) { 
    137137  # Not subscribed to list, so he can't post 
    138138  my $e_send_to = MIME::Entity->build( 
     
    150150 } else { 
    151151  # Send Mail to all subscribed 
    152   @addresses = getAllAddresses($row[0]); 
     152  @addresses = getAllAddresses($row->{id}); 
    153153  sendto($mail->as_string , $sender); 
    154154 } 
    155155} else { 
    156156 # Send Mail to all subscribed 
    157  @addresses = getAllAddresses($row[0]); 
     157 @addresses = getAllAddresses($row->{id}); 
    158158 sendto($mail->as_string , $sender); 
    159159}