#!/usr/bin/python3 # # write profile files from saved data # # only to be run once # from mailman import Mailman from profile import Profile p = Profile() event = {'time': '2021-12-02T13:34:29Z', 'repcode': 'nep-exp', 'act': 'del', 'emad': 'scharioth@pollion.com', 'via': 'web confirmation'} p.register(event, do_write=True) quit() event = {'time': '2020-11-05', 'repcode': 'nep-XXX', 'act': 'add', 'name': 'Geoff Test', 'emad': 'test@test'} # print(event) p.register(event) event = {'time': '2020-11-04T06:54:25Z', 'repcode': 'nep-XXX', 'act': 'add', 'name': 'Geoff Test', 'emad': 'test@test'} p.register(event) event = {'time': '2021-11-04T06:54:25Z', 'repcode': 'nep-XXX', 'act': 'del', 'name': 'Geoff Test', 'emad': 'test@test'} p.register(event) event = {'time': '2001-12', 'repcode': 'nep-XXX', 'act': 'add', 'name': 'Geoff Test', 'emad': 'test@test'} p.register(event) quit() # {'time': '2020-11-04T06:54:25Z', 'repcode': 'nep-int', 'act': 'add', 'name': '"Saif S. Alhakimi"', 'emad': 'saif_alhakimi@yahoo.com'}m.watch()