24 Sep
2023
24 Sep
'23
5:53 a.m.
On 2023-09-24 13:28, Mark Sapiro wrote:
On 9/23/23 19:19, Mark wrote:
Yes, the query returns a result and the case in "name" matches that in the query ...
select * from hyperkitty_mailinglist where name like 'listname@domain.com'
id | 91 name | listname@domain.com display_name | Listname description | ... subject_prefix | [Listname] archive_policy | 1 created_at | 2023-09-21 08:55:36.385239+2 list_id | listname@domain.com
Is that really what you get for list_id? It should have a dot, not at as listname.domain.com.
What if you do something like the following where django-admin is whatever command you use for the Django admin command.
$ django-admin shell Python 3.9.16 (main, Dec 11 2022, 12:49:23) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from hyperkitty.models.mailinglist import MailingList >>> mlist_name = 'listname@domain.com' >>> mlist = MailingList.objects.get(name=mlist_name) >>> mlist <MailingList listname@domain.com (listname.domain.com)> >>>
My bad. I was in too much of a hurry when redacting.
The list_id is as you say: listname.domain.com