su list -s /usr/bin/mailman -- shell -l test@lists.ceddral.org from mailman.testing.documentation import call_http listname = '.'.join(m.fqdn_listname.split('@')) json = call_http('http://localhost:8001/3.0/lists/'+listname+'/requests') json json['entries'][0]['email'] call_http('http://localhost:8001/3.0/lists/'+listname+'/requests/'+json['entries'][0]['token'], {'action': 'accept'})