On 3/4/21 2:09 AM, David Partain via Mailman-users wrote:
On Wed, 2021-03-03 at 08:29 -0800, Mark Sapiro wrote:
- Am I correct in assuming that I can just use my favorite editor (vi) to remove the offending characters from the file?
No. The file is a Python pickle and you can't edit it. You would need to get the message and the metadata from the pickle (you could at least view it with the
mailman qfile
command), edit the message and then re-pickle the message and metadata.And, in my impatience, I tried it before receiving your response and now I seem to have done silliness in my database :( New error in mailman-web.log:
AttributeError: 'NoneType' object has no attribute 'subject'
Sigh. Stupid me. If you have suggestions on fixing that...
Is the file you edited still in the spool directory or is it gone? If it's still there, move it aside and see if that fixes the issue.
What is the full traceback accompanying that AttributeError message from the log?
Right now, my plan is simply to remove the first message in the queue (since I assume it'll be the "broken" one) and it'll just not be in the archive. Life's hard. Even if I unpack 'em to edit, I'll find mail in, for example, in base64, and I'm not going to fix the mail by decoding, editing, re-encoding, ... Nope.
Examine the messages in the spool with mailman qfile var/archive/hyperkitty/spool/filename
. If any files throw exceptions on
that, move them aside. Also, if you can see any 4-byte utf-8 encodings
in the output, move that aside as well. Then see what happens after that.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan