--- gateway/.dispatchmailrc 2003/01/24 19:42:35 1.1 +++ gateway/.dispatchmailrc 2003/03/23 21:15:41 1.2 @@ -27,7 +27,12 @@ # ----- # target-based-routing (gateway to news in this case...) -print "to: $to", "\n"; + + print "to: $to", "\n"; + + + # --- @netfrag.org + if ($to =~ /links-computing/) { print "COPY", "\n"; #$self->copy('Newsgate', 'alt.test'); @@ -40,9 +45,52 @@ #$incoming->pipe($pipeTo); } + # cvs-log@netfrag.org + $self->copy('Newsgate', 'nfo.log.cvs') if $to =~ m/cvs-log\@.*netfrag\.org/; + + # faq@netfrag.org + $self->copy('Newsgate', 'nfo.support.faq') if $to =~ m/faq\@.*netfrag\.org/; + + # caesar@netfrag.org - Collaborative And Easy System ARchitecture + $self->copy('Newsgate', 'nfo.caesar') if $to =~ m/caesar\@.*netfrag\.org/; + + # support@netfrag.org + #$self->copy('Newsgate', 'nfo.support') if $to =~ m/support\@.*netfrag\.org/; + + # links-misc@netfrag.org + $self->copy('Newsgate', 'nfo.links.misc') if $to =~ m/links-misc/; + + # links-php@netfrag.org + $self->copy('Newsgate', 'nfo.dev.php') if $to =~ m/links-php/; + + # dev-php@netfrag.org + $self->copy('Newsgate', 'nfo.dev.php') if $to =~ m/dev-php/; + + # sysadmin-debian@netfrag.org + $self->copy('Newsgate', 'nfo.sysadmin.debian') if $to =~ m/sysadmin-debian/; + + # sysadmin@netfrag.org + # TODO: investigate this from the workflow point: + # this could act as a dispatcher to the timetracker for certain topic-hierarchies + $self->copy('Newsgate', 'nfo.sysadmin.tutos') if $to =~ m/sysadmin\@.*netfrag\.org/; + + + # --- @service.netfrag.org + + # alert@service.netfrag.org + # TODO: branch part of msg to sms here!!! + $self->copy('Newsgate', 'nfo.support') if $to =~ m/alert\@service\.netfrag\.org/; + $self->copy('Newsgate', 'nfo.support') if $to =~ m/.*\@h1\.service\.netfrag\.org/; + + + + # --- ignore (all above get *copied*) + $self->ignore(); #$self->accept("$MAILDIR/Inbox"); } 1; +__END__ +