message file gone, but exists in database?
I'm investigating some problems, and in the process I want to delete some messages.
messages = list(message_store.messages) Traceback (most recent call last): File "<console>", line 1, in <module> File "/usr/local/lib/python3.6/site-packages/mailman/model/messagestore.py",
First, listing all messages: line 117, in messages yield self._get_message(row) File "/usr/local/lib/python3.6/site-packages/mailman/model/messagestore.py", line 95, in _get_message with open(path, 'rb') as fp: FileNotFoundError: [Errno 2] No such file or directory: '/opt/mailman/var/messages/5X/7W/5X7WMWNORTGVNB6KVWTHHOI2VF2BEQ7K'
message_store.delete_message('5X7WMWNORTGVNB6KVWTHHOI2VF2BEQ7K') commit() messages = list(message_store.messages) Traceback (most recent call last): File "<console>", line 1, in <module> File "/usr/local/lib/python3.6/site-packages/mailman/model/messagestore.py",
Since this message should not exist in database, I try to delete it: line 117, in messages yield self._get_message(row) File "/usr/local/lib/python3.6/site-packages/mailman/model/messagestore.py", line 95, in _get_message with open(path, 'rb') as fp: FileNotFoundError: [Errno 2] No such file or directory: '/opt/mailman/var/messages/5X/7W/5X7WMWNORTGVNB6KVWTHHOI2VF2BEQ7K'
However, it continues to exist in mailman's mind
I also cannot delete messages that actually exist. For instance, I find a message in Postorius that I want to delete. I look at the headers and then run
message_store.delete_message('6XFISRRFY74NJEE4FTRNWOA2KGKDBZ3T') commit() After that, the message continues to live, both in postorius and as a file: bash-4.3# ls 6XFISRRFY74NJEE4FTRNWOA2KGKDBZ3T
What is wrong?
participants (1)
-
Thor Atle Rustad