From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- mail/lib/rewrite | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mail/lib/rewrite') 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'" -- cgit v1.2.3