[Mailman-Developers] Mailman3: creating a user from an existing address
aurelien at bompard.org
Fri Apr 25 16:55:53 CEST 2014
I'm trying to create a User in Mailman 3 from an existing Address. If
I were using the Python interface, that would be very easy: just
create the user with no address and then link the existing address to
However, I'm using the REST interface. In
mailman.rest.users.AllUser.create(), there's a try/except block which
explicitely looks for this case and raises an HTTP 400 error. Looking
at the test_existing_user_error() test case, it's apparently to
prevent creating a user twice, which is not my use case.
Are you OK if I hack the code to automatically link to an existing
address while still erroring-out if the user already exist?
Or would it be better to allow linking to an existing address from the REST API?
More information about the Mailman-Developers