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

13 lines
315 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)
2022-05-04 10:29:03 +02:00
return sorted(list(relay))