/[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 30 by dpavlin, Mon May 16 21:54:41 2005 UTC revision 33 by dpavlin, Tue May 17 11:09:08 2005 UTC
# Line 83  if ($list_name = $opt->{'new'}) { Line 83  if ($list_name = $opt->{'new'}) {
83    
84          die "need e-mail address for list (as argument or on STDIN)\n" unless ($email);          die "need e-mail address for list (as argument or on STDIN)\n" unless ($email);
85    
86          my $l = $nos->_get_list($list_name) || $nos->_add_list(          my $id = $nos->new_list(
87                  list => $list_name,                  list => $list_name,
88                  email => $email,                  email => $email,
89          ) || die "can't add list $list_name\n";          ) || die "can't add list $list_name\n";
90    
91          print "added list $list_name with ID ",$l->id,"\n";          print "added list $list_name with ID $id\n";
92    
93    
94  =item --list[=list_name]  =item --list[=list_name]
# Line 173  add C<--verbose> flag, it will display a Line 173  add C<--verbose> flag, it will display a
173                  my $id = $nos->add_message_to_list(                  my $id = $nos->add_message_to_list(
174                          list => $list_name,                          list => $list_name,
175                          message => $message_text,                          message => $message_text,
176                  );                  ) || die "can't add message to list $list_name\n";
177    
178                  print "added message $id to list $list_name\n";                  print "added message $id to list $list_name\n";
179    

Legend:
Removed from v.30  
changed lines
  Added in v.33

  ViewVC Help
Powered by ViewVC 1.1.26