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 |
|
|