/[cvs]/gateway/.dispatchmailrc
ViewVC logotype

Diff of /gateway/.dispatchmailrc

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

revision 1.1 by gateway, Fri Jan 24 19:42:35 2003 UTC revision 1.4 by gateway, Sun Mar 23 22:19:10 2003 UTC
# Line 27  sub dispatch { Line 27  sub dispatch {
27    
28    # -----    # -----
29    # target-based-routing (gateway to news in this case...)    # target-based-routing (gateway to news in this case...)
30  print "to: $to", "\n";  
31    if ($to =~ /links-computing/) {      print "to: $to", "\n";
32  print "COPY", "\n";  
33      #$self->copy('Newsgate', 'alt.test');  
34      $self->copy('Newsgate', 'nfo.links.computing');    # --- @netfrag.org
35      #my $prg = $0;  
36      #my $prg = '/data/opt/dispatchmail/bin/dispatchmail';    # links-computing@netfrag.org
37      #my $prg = '/etc/mail/smrsh/dispatchmail';    $self->copy('Newsgate', 'nfo.links.computing') if $to =~ m/links-computing/;
38      #my $pipeTo = $prg . ' --mode=mail2news --thread=alt.test --base=/home/collector';  
39      #$self->report("PIPE: " . $pipeTo);    # test@netfrag.org
40      #$incoming->pipe($pipeTo);    $self->copy('Newsgate', 'alt.test') if $to =~ m/test\@.*\.netfrag\.org/;
41    }  
42        # cvs-log@netfrag.org
43      $self->copy('Newsgate', 'nfo.log.cvs') if $to =~ m/cvs-log\@.*netfrag\.org/;
44    
45      # faq@netfrag.org
46      $self->copy('Newsgate', 'nfo.support.faq') if $to =~ m/faq\@.*netfrag\.org/;
47    
48      # caesar@netfrag.org - Collaborative And Easy System ARchitecture
49      $self->copy('Newsgate', 'nfo.caesar') if $to =~ m/caesar\@.*netfrag\.org/;
50    
51      # support@netfrag.org
52      #$self->copy('Newsgate', 'nfo.support') if $to =~ m/support\@.*netfrag\.org/;
53    
54      # links-misc@netfrag.org
55      $self->copy('Newsgate', 'nfo.links.misc') if $to =~ m/links-misc/;
56    
57      # links-php@netfrag.org
58      $self->copy('Newsgate', 'nfo.dev.php') if $to =~ m/links-php/;
59    
60      # dev-php@netfrag.org
61      $self->copy('Newsgate', 'nfo.dev.php') if $to =~ m/dev-php/;
62    
63      # sysadmin-debian@netfrag.org
64      $self->copy('Newsgate', 'nfo.sysadmin.debian') if $to =~ m/sysadmin-debian/;
65    
66      # sysadmin@netfrag.org
67      # TODO: investigate this from the workflow point:
68      # this could act as a dispatcher to the timetracker for certain topic-hierarchies
69      $self->copy('Newsgate', 'nfo.sysadmin.tutos') if $to =~ m/sysadmin\@.*netfrag\.org/;
70    
71    
72      # --- @service.netfrag.org
73    
74      # alert@service.netfrag.org
75      # TODO: branch part of msg to sms here!!!
76      $self->copy('Newsgate', 'nfo.support') if $to =~ m/alert\@service\.netfrag\.org/;
77      $self->copy('Newsgate', 'nfo.support') if $to =~ m/.*\@h1\.service\.netfrag\.org/;
78    
79    
80    
81      # --- ignore (all above get *copied*)
82    
83    $self->ignore();    $self->ignore();
84    #$self->accept("$MAILDIR/Inbox");    #$self->accept("$MAILDIR/Inbox");
85    
86  }  }
87    
88  1;  1;
89    __END__
90    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed