aboutsummaryrefslogtreecommitdiff
path: root/mail/lib/rewrite
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /mail/lib/rewrite
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'mail/lib/rewrite')
-rwxr-xr-xmail/lib/rewrite7
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/lib/rewrite b/mail/lib/rewrite
index 9f6f4106..837d28a2 100755
--- a/mail/lib/rewrite
+++ b/mail/lib/rewrite
@@ -14,7 +14,7 @@
[^!@.]+ translate "$PLAN9/bin/upas/aliasmail '&'"
# append the local domain to addresses without a domain
-local!(.*) alias \1@YOURDOMAIN.DOM
+local!(.*) alias \1@swtch.com
# convert source domain address to a chain a@b@c@d...
@([^@!,]*):([^!@]*)@([^!]*) alias \2@\3@\1
@@ -24,5 +24,8 @@ local!(.*) alias \1@YOURDOMAIN.DOM
([^@]+)@([^@]+)@(.+) alias \2!\1@\3
([^@]+)@([^@]+) alias \2!\1
+# send swtch.com mail separately to appease mail avenger
+(swtch.com)!(.*) | "$PLAN9/mail/lib/qmail '\s' 'swtch.com'" "'\2@\1'"
+
# send all mail to the gateway or mail server, $smtp, for delivery
-([^!]*)!(.*) | "$PLAN9/mail/lib/qmail '\s' 'YOURGATEWAY.DOM'" "'\2@\1'"
+([^!]*)!(.*) | "$PLAN9/mail/lib/qmail '\s' 'holo.morphisms.net'" "'\2@\1'"