dataset/seed/mailman/funcs/mailman.py

19 lines
541 B
Python
Raw Normal View History

2022-03-11 18:41:49 +01:00
from risotto.utils import multi_function as _multi_function
2022-03-08 19:42:28 +01:00
def mailman_emails(lists, domain):
2022-08-21 18:59:02 +02:00
return '.*@' + domain
# ret = []
# for lst in lists:
# for suffix in [None, 'bounces(\+.*)?', 'confirm(\+.*)?', 'join', 'leave', 'owner', 'request', 'subscribe', 'unsubscribe']:
# if suffix:
# lst_name = lst + '-' + suffix
# else:
# lst_name = lst
# ret.append(lst_name + '@' + domain)
# return ret
2022-03-08 19:42:28 +01:00
@_multi_function
def mailman_concat(lists):
2022-08-21 18:59:02 +02:00
return lists