10 Aug
2024
10 Aug
'24
12:12 a.m.
On 8/9/24 15:52, Greg Newby wrote:
######################################################################## # Step 3: Import the legacy settings to the newly created list def do_import(new_list, new_pickle_file):
# I did not see how to call import21 directly from Python, so am using # a subprocess which basically uses the CLI syntax.
from mailman.utilities.importer import import_config_pck
import_config_pck(l, data)
# l is from the result of l = create_list(new_list) above
# data is the massaged dictionary from above
# No need to save it in a new pickle and subprocess `mailman import21`
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan