dataset/seed/applicationservice/2022.03.08/postfix-relay/funcs/postfix.py

13 lines
307 B
Python
Raw Normal View History

2022-03-20 21:15:45 +01:00
from risotto.utils import multi_function as _multi_function
@_multi_function
def calc_postfix_relay_domains(criteria):
relay = set()
for lsts in criteria:
for lst in lsts:
if '@' in lst:
lst = lst.split('@')[1]
relay.add(lst)
return list(relay)