class AutocompleteMail:
def __init__(self, conf):
self.config = {
"base": "@company.local"
}
self.config.update(conf)
def run(self, fields):
autocomplete = {
"mail": fields.get("uid") + self.config["base"],
}
return {**autocomplete, **fields}