rewrite 428 B

1234567891011
  1. # convert source domain address to a chain a@b@c@d...
  2. @([^@!,]*):([^!@]*)@([^!]*) alias \2@\3@\1
  3. @([^@!]*),@([^!@,]*):([^!@]*)@([^!]*) alias @\1:\3@\4@\2
  4. # convert a chain a@b@c@d... to ...d!c!b!a
  5. ([^@]+)@([^@]+)@(.+) alias \2!\1@\3
  6. ([^@]+)@([^@]+) alias \2!\1
  7. # all mail
  8. plan9\.bell-labs\.com!(.*) | "/mail/lib/qmail '\s' 'net!plan9\.bell-labs\.com'" "'\1'"
  9. .* | "/mail/lib/qmail '\s' 'net!plan9\.bell-labs\.com'" "'&'"