Repeated mailman-web.log WARNING "Could not archive the email with message-id '<...>': A string literal cannot contain NUL (0x00) characters."
Mailman seems to repeatedly try to import the message which Hyperkitty rejects. Shouldn´t this trigger a single failure (with notification to the sender/admin) instead of retrying the import in an endless loop?
root@lists:/var/log/mailman3# cat web/mailman-web.log | grep --after-context=3 'A string literal cannot contain NUL' | head
WARNING 2023-03-15 23:07:08,521 171456 hyperkitty.views.mailman Could not archive the email with message-id '<$x>': A string literal cannot contain NUL (0x00) characters.
WARNING 2023-03-15 23:07:08,523 171456 django.request Bad Request: /mailman3/hyperkitty/api/mailman/archive
WARNING 2023-03-15 23:07:08,523 171456 django.request Bad Request: /mailman3/hyperkitty/api/mailman/archive
[pid: 171456|app: 0|req: 340033/340033] ::1 () {56 vars in 1070 bytes} [Wed Mar 15 23:07:08 2023] POST /mailman3/hyperkitty/api/mailman/archive?key=$a => generated 67 bytes in 318 msecs (HTTP/1.1 400) 5 headers in 168 bytes (1 switches on core 0)
...
WARNING 2023-03-15 23:13:08,987 171456 hyperkitty.views.mailman Could not archive the email with message-id '<$x>': A string literal cannot contain NUL (0x00) characters.
WARNING 2023-03-15 23:13:08,988 171456 django.request Bad Request: /mailman3/hyperkitty/api/mailman/archive
WARNING 2023-03-15 23:13:08,988 171456 django.request Bad Request: /mailman3/hyperkitty/api/mailman/archive
[pid: 171456|app: 0|req: 340039/340039] ::1 () {56 vars in 1070 bytes} [Wed Mar 15 23:13:08 2023] POST /mailman3/hyperkitty/api/mailman/archive?key=$a => generated 67 bytes in 641 msecs (HTTP/1.1 400) 5 headers in 168 bytes (1 switches on core 0)
...
root@lists:/var/log/mailman3# cat mailman.log
...
Mar 16 00:07:08 2023 (171446) HyperKitty failure on http://localhost/mailman3/hyperkitty/api/mailman/archive: {"error": "A string literal cannot contain NUL (0x00) characters."} (400)
Mar 16 00:07:08 2023 (171446) Exception in the HyperKitty archiver: {"error": "A string literal cannot contain NUL (0x00) characters."}
Mar 16 00:07:08 2023 (171446) Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mailman_hyperkitty/__init__.py", line 154, in _archive_message
url = self._send_message(mlist, msg)
File "/usr/lib/python3/dist-packages/mailman_hyperkitty/__init__.py", line 210, in _send_message
raise ValueError(result.text)
ValueError: {"error": "A string literal cannot contain NUL (0x00) characters."}
...