/[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.2 by gateway, Sun Mar 23 21:15:41 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        print "to: $to", "\n";
32    
33    
34      # --- @netfrag.org
35    
36    if ($to =~ /links-computing/) {    if ($to =~ /links-computing/) {
37  print "COPY", "\n";  print "COPY", "\n";
38      #$self->copy('Newsgate', 'alt.test');      #$self->copy('Newsgate', 'alt.test');
# Line 40  print "COPY", "\n"; Line 45  print "COPY", "\n";
45      #$incoming->pipe($pipeTo);      #$incoming->pipe($pipeTo);
46    }    }
47        
48      # cvs-log@netfrag.org
49      $self->copy('Newsgate', 'nfo.log.cvs') if $to =~ m/cvs-log\@.*netfrag\.org/;
50    
51      # faq@netfrag.org
52      $self->copy('Newsgate', 'nfo.support.faq') if $to =~ m/faq\@.*netfrag\.org/;
53    
54      # caesar@netfrag.org - Collaborative And Easy System ARchitecture
55      $self->copy('Newsgate', 'nfo.caesar') if $to =~ m/caesar\@.*netfrag\.org/;
56    
57      # support@netfrag.org
58      #$self->copy('Newsgate', 'nfo.support') if $to =~ m/support\@.*netfrag\.org/;
59    
60      # links-misc@netfrag.org
61      $self->copy('Newsgate', 'nfo.links.misc') if $to =~ m/links-misc/;
62    
63      # links-php@netfrag.org
64      $self->copy('Newsgate', 'nfo.dev.php') if $to =~ m/links-php/;
65    
66      # dev-php@netfrag.org
67      $self->copy('Newsgate', 'nfo.dev.php') if $to =~ m/dev-php/;
68    
69      # sysadmin-debian@netfrag.org
70      $self->copy('Newsgate', 'nfo.sysadmin.debian') if $to =~ m/sysadmin-debian/;
71    
72      # sysadmin@netfrag.org
73      # TODO: investigate this from the workflow point:
74      # this could act as a dispatcher to the timetracker for certain topic-hierarchies
75      $self->copy('Newsgate', 'nfo.sysadmin.tutos') if $to =~ m/sysadmin\@.*netfrag\.org/;
76    
77    
78      # --- @service.netfrag.org
79    
80      # alert@service.netfrag.org
81      # TODO: branch part of msg to sms here!!!
82      $self->copy('Newsgate', 'nfo.support') if $to =~ m/alert\@service\.netfrag\.org/;
83      $self->copy('Newsgate', 'nfo.support') if $to =~ m/.*\@h1\.service\.netfrag\.org/;
84    
85    
86    
87      # --- ignore (all above get *copied*)
88    
89    $self->ignore();    $self->ignore();
90    #$self->accept("$MAILDIR/Inbox");    #$self->accept("$MAILDIR/Inbox");
91    
92  }  }
93    
94  1;  1;
95    __END__
96    

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

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