IndexError in archiving queue
 
            Hello,
it seems I have forgotten where I can kick an email out of the archiving queue as it produces this error in a loop. Might one of you know where I can do that? Thanks in advance.
Error for reference:
During handling of the above exception (expected atom at a start of 
dot-atom-text but found 
'[a9920f8aa52d4a9093e21255f8fb2673-JFBVALKQOJXWILKCJQZFA7CJIFGVGU2QKJ6FGU2QKJCW2YLJNR6EK6DPKNWXI4A=@microsoft.com]>'), 
another exception occurred:
   File 
"/usr/local/mailman3/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", 
line 55, in inner
     response = get_response(request)
   File 
"/usr/local/mailman3/venv/lib/python3.9/site-packages/django/core/handlers/base.py", 
line 197, in _get_response
     response = wrapped_callback(request, *callback_args, 
**callback_kwargs)
   File 
"/usr/local/mailman3/venv/lib/python3.9/site-packages/django/views/decorators/http.py", 
line 43, in inner
     return func(request, *args, **kwargs)
   File 
"/usr/local/mailman3/venv/lib/python3.9/site-packages/hyperkitty/views/mailman.py", 
line 117, in _decorator
     return func(request, *args, **kwargs)
   File 
"/usr/local/mailman3/venv/lib/python3.9/site-packages/django/views/decorators/csrf.py", 
line 54, in wrapped_view
     return view_func(*args, **kwargs)
   File 
"/usr/local/mailman3/venv/lib/python3.9/site-packages/hyperkitty/views/mailman.py", 
line 163, in archive
     add_to_list(mlist_fqdn, msg)
   File 
"/usr/local/mailman3/venv/lib/python3.9/site-packages/hyperkitty/lib/incoming.py", 
line 65, in add_to_list
     msg_id = get_message_id(message)
   File 
"/usr/local/mailman3/venv/lib/python3.9/site-packages/hyperkitty/lib/utils.py", 
line 60, in get_message_id
     msg_id = email.utils.unquote(re.sub(r'\s', '', 
message['Message-Id']))
   File "/usr/lib/python3.9/email/message.py", line 391, in __getitem__
     the values matching a header field name.
   File "/usr/lib/python3.9/email/message.py", line 471, in get
     for k, v in self._headers:
   File "/usr/lib/python3.9/email/policy.py", line 163, in 
header_fetch_parse
     return self.header_factory(name, value)
   File "/usr/lib/python3.9/email/headerregistry.py", line 601, in 
__call__
     return self[name](name, value)
   File "/usr/lib/python3.9/email/headerregistry.py", line 196, in 
__new__
     cls.parse(value, kwds)
   File "/usr/lib/python3.9/email/headerregistry.py", line 529, in parse
     kwds['parse_tree'] = parse_tree = cls.value_parser(value)
   File "/usr/lib/python3.9/email/_header_value_parser.py", line 2126, in 
parse_message_id
     token, value = get_msg_id(value)
   File "/usr/lib/python3.9/email/_header_value_parser.py", line 2073, in 
get_msg_id
     token, value = get_obs_local_part(value)
   File "/usr/lib/python3.9/email/_header_value_parser.py", line 1516, in 
get_obs_local_part
     if (obs_local_part[0].token_type == 'dot' or
regards Jacob
 
            On 3/16/23 04:13, Jacob Sievert via Mailman-users wrote:
Hello,
it seems I have forgotten where I can kick an email out of the archiving queue as it produces this error in a loop. Might one of you know where I can do that? Thanks in advance.
The underlying error is a bogus Message-ID header in the message. We have observed cases of Message-IDs like
Message-ID: <[d1e99408882e4aed93b0df4c1c28dfa3-JFBVALKQOJXWILKNK4YVA7COOVDWK5D4IVWWC2LMKB2WE3DJONUGK4T4IV4G6U3NORYA====@microsoft.com]>
where the [ and ] are the problem. See the report at
https://gitlab.com/mailman/mailman/-/issues/732 and fix for that at
https://gitlab.com/mailman/mailman/-/merge_requests/1099
I would like to see the headers of the message in your case.
To answer your question, the offending message is queued in Mailman's
var/archives/hyperkitty/spool/ directory and can be examined with
Mailman's mailman qfile command.
Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
- 
                 Jacob Sievert Jacob Sievert
- 
                 Mark Sapiro Mark Sapiro