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'); |
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 |
|
|