On 9/23/20 7:01 AM, Brian Carpenter wrote: > On 9/23/20 9:52 AM, Thomas Gramstad wrote: >> I'm trying to get rid of some test messages, unsubscribe messages, and >> a misdirected personal message from a public list archive (Mailman >> 2.1.29). >> >> The problem is that the archived messages keep resurrecting themselves >> in the date.html file, even if the actual message files have been >> deleted, after I edit them away from the date.html file. >> >> How can I prevent this behavior, so that only actually existing >> archive messages show up in the archive index file date.html? > > Hi Thomas, > > I believe you have to delete the message from your list's mbox file > (mailman_install_dir/archives/private/listname.mbox/listname.mbox) and > then rebuild your archives "mailman_install_dir/bin/arch --wipe listname".
Brian's suggestion is the simple, straightforward way to do this. Here is more detail about what's happening in your case. The information below is not a suggestion that you actually try to edit the database files, rather it's just background if you're interested. The various author, date, subject and thread .html files for any archive period are rebuilt from information in archives/private/<listname>/database/* files for that period whenever there is a post in that period. It is possible to edit those database files, but probably isn't worth it - they are python marshals. There is a script at <https://www.msapiro.net/scripts/hdfix> that can edit the article database, but only for the purpose of redacting subjects and authors. That script has more information as to its purpose, but is only relevant here as information about the format of the article database. There is also a script at <https://www.msapiro.net/scripts/hddump> which can dump these databases and may be useful as illustration of how to access them with Archiver methods. -- 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@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/