# -*- mode: python; coding: utf-8 -*- include("ip") header("Fichier fournissant des méthodes pour traduire certaines adresses") if has("bug-tracker"): # On ne sait jamais @/^(.*)@bugs.crans.org$/ ${1}@bugs.crans.org out("/^(.*)@localhost(\.crans\.org)?$/ ${1}@crans.org") out("/^(.*)@%s$/ ${1}@crans.org" % (admhostname,)) if not has("non-vlan-adherent"): out("/^(.*)@%s$/ ${1}@crans.org" % (pubhostname,))