/[notice-sender]/trunk/sender.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/sender.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 49 by dpavlin, Tue May 24 16:44:34 2005 UTC revision 55 by dpavlin, Wed Jun 8 14:26:31 2005 UTC
# Line 117  on that list. Line 117  on that list.
117          }          }
118    
119          foreach my $list (@lists) {          foreach my $list (@lists) {
120                  print $list->name," <",$list->email,">\n";                  print $list->name,": ",$list->from_addr," <",$list->email,">\n";
121                  foreach my $u ($nos->list_members( list => $list->name )) {                  foreach my $u ($nos->list_members( list => $list->name )) {
122                          print "\t",$u->{'name'}, " <", $u->{'email'}, ">\n";                          print "\t",$u->{'name'}, " <", $u->{'email'}, ">\n";
123                  }                  }
# Line 136  argument) or read from C<STDIN>. List sh Line 136  argument) or read from C<STDIN>. List sh
136    
137  } elsif ($list_name = $opt->{'add'}) {  } elsif ($list_name = $opt->{'add'}) {
138    
139          my $list = $lists->find_or_create({          my $list = $nos->_get_list($list_name) || die "can't find list $list_name\n";
                 name => $list_name,  
         }) || die "can't add list $list_name\n";  
140    
141          my $added = 0;          my $added = 0;
142    
# Line 216  between sending e-mail. Line 214  between sending e-mail.
214    
215  } elsif (defined($list_name = $opt->{'send'})) {  } elsif (defined($list_name = $opt->{'send'})) {
216    
217            unless ($opt->{'email_send_driver'}) {
218                    print "WARNING: this will dump debugging output to STDERR\n";
219                    print "enter alternative driver (e.g. smtp): ";
220                    my $d = <STDIN>;
221                    chomp($d);
222                    $opt->{'email_send_driver'} = $d;
223            }
224    
225          $nos->send_queued_messages(          $nos->send_queued_messages(
226                  list => $list_name,                  list => $list_name,
227                  driver => $opt->{'email_send_driver'},                  driver => $opt->{'email_send_driver'},

Legend:
Removed from v.49  
changed lines
  Added in v.55

  ViewVC Help
Powered by ViewVC 1.1.26