On 12/5/24 04:25, Bryan Fields wrote:
I've been working with a rather large import and am finding that I can't seem
to get the search on a Message-ID: to return anything.
...
Any ideas how to get it indexing the ID so a layperson can search on it?


Message-ID is not one of the fields indexed. These are defined at https://gitlab.com/mailman/hyperkitty/-/blob/master/hyperkitty/search_indexes.py?ref_type=heads#L40-L49

A bit obscure for laypersons, but one can compute the message_id_hash from the Message-ID
```
from base64 import b32encode
from hashlib import sha1

def get_message_id_hash(msg_id):
return b32encode(sha1(msg_id).digest()).decode()
```

I can't help but wonder though how one has the Message-ID without having the message. I'm wondering in general how often if ever the layperson would be searching the archive for a Message-ID.

--
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/Y2QU2Q5FKYI3TDI3CU3CGNVWFTJHSNVT/

This message sent to arch...@mail-archive.com

Reply via email to