/[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 47 by dpavlin, Tue May 24 14:02:05 2005 UTC revision 48 by dpavlin, Tue May 24 15:19:44 2005 UTC
# Line 19  sender.pl - command line notify sender u Line 19  sender.pl - command line notify sender u
19    
20  In C</etc/aliases> something like:  In C</etc/aliases> something like:
21    
22   mylist: "| /path/to/sender.pl --inbox=mylist"   mylist: "| cd /path/to && ./sender.pl --inbox=mylist"
23     mylist-bounce: "| cd /path/to && ./sender.pl --inbox=mylist --bounce"
24    
25  =head2 Command options  =head2 Command options
26    
# Line 42  my $result = GetOptions( Line 43  my $result = GetOptions(
43          "verbose" => \$verbose,          "verbose" => \$verbose,
44          "from=s" => \$opt->{'from'},          "from=s" => \$opt->{'from'},
45          "driver=s" => \$opt->{'email_send_driver'},          "driver=s" => \$opt->{'email_send_driver'},
46            "bounce" => \$opt->{'bounce'},
47  );  );
48    
49  my $nos = new Nos(  my $nos = new Nos(
# Line 219  localhost (127.0.0.1). Line 221  localhost (127.0.0.1).
221    
222  Feed incomming message back into notice sender.  Feed incomming message back into notice sender.
223    
224    Optional argument C<--bounce> define that this message is received to
225    bounce address.
226    
227  =cut  =cut
228    
229  } elsif ($list_name = $opt->{'inbox'}) {  } elsif ($list_name = $opt->{'inbox'}) {
# Line 231  Feed incomming message back into notice Line 236  Feed incomming message back into notice
236          $nos->inbox_message(          $nos->inbox_message(
237                  list => $list_name,                  list => $list_name,
238                  message => $message,                  message => $message,
239                    bounce => $opt->{'bounce'},
240          ) || die "can't receive message for list $list_name";          ) || die "can't receive message for list $list_name";
241    
242    

Legend:
Removed from v.47  
changed lines
  Added in v.48

  ViewVC Help
Powered by ViewVC 1.1.26