--- gateway/.dispatchmailrc 2003/01/24 19:42:35 1.1 +++ gateway/.dispatchmailrc 2003/03/23 21:17:58 1.3 @@ -27,22 +27,64 @@ # ----- # target-based-routing (gateway to news in this case...) -print "to: $to", "\n"; - if ($to =~ /links-computing/) { -print "COPY", "\n"; - #$self->copy('Newsgate', 'alt.test'); - $self->copy('Newsgate', 'nfo.links.computing'); - #my $prg = $0; - #my $prg = '/data/opt/dispatchmail/bin/dispatchmail'; - #my $prg = '/etc/mail/smrsh/dispatchmail'; - #my $pipeTo = $prg . ' --mode=mail2news --thread=alt.test --base=/home/collector'; - #$self->report("PIPE: " . $pipeTo); - #$incoming->pipe($pipeTo); - } - + + print "to: $to", "\n"; + + + # --- @netfrag.org + + # links-computing@netfrag.org + $self->copy('Newsgate', 'nfo.links.computing') if $to =~ m/links-computing/; + + # test@netfrag.org + $self->copy('Newsgate', 'alt.test') if $to =~ m/test\@.*netfrag\.org/; + + # 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__ +