On Sun, Feb 04 2018, Simon Hanna wrote:
You should be able to use mailmanclient to get a list of subscribers with names. It seems, that mailmanclient does not know about the real name (the first name and the last name in Django). But this seems to work:
from django.contrib.auth.models import User user = User.objects.get(email='address@of.user') print(user.first_name) print(user.last_name)
So, I'll try to make some loop over a list with email addresses, that I can get on the web interface. These are names that are saved in Postorius' (django) database and have nothing to do with mailman. Furthermore you will only find them if people have logins for the frontend. They don't have to. Also these names are optional. They aren't populated during signup and
On 02/04/2018 08:37 PM, Peter Münster wrote: people have to provide them afterwards themselves.
Names are optional though, if people signup without them you won't be able to get them. My usage of mailman is perhaps a bit special: users can't sign up, only the site owner signs up manually with create_user(email=, first_name=...) Then the site owner creates the mailing lists and uses mass subscription (for example all members of a basketball team). At one moment, the list of subscribers should be verified by all members, just to be sure, that nobody got forgotten.
Currently there is no option to require names. I'll open an issue in postorius about showing the name in the member list if there is one associated. Thanks. It would be nice, to see the first_name and the last_name of the django-auth user object.
IIRC one person(postorius account) can also signup at different lists using different names (regardless of address). You mean the "display_name" of mailmanclient here? I won't use it. For my usage, I prefer a clear association of email, first name and last name in one account, no need for "display_name" here. Displaying the names stored in django probably won't happen. Matching the names in django with the members in lists would require lots of code where people can just supply their name when they signup for a list. Also you might want to be known by name on one list and not on others...