no maillist.php lock file?? [message #11252] |
Tue, 24 June 2003 21:59 |
Tobias Eigen
Messages: 85 Registered: June 2003 Location: Seattle, WA USA
Karma: 0
|
Member |
|
|
Hi Protoss,
I just made an unfortunate discovery: there appears to be no lock file for maillist.php. I've been running commands like this for the last few hours:
Quote: | cat /usr/local/mailman/archives/private/debate.mbox/debate.mbox | formail -s php -f /home/httpd/vhosts/kabissa.org/httpdocs/team/forum-data/scripts/maillist.ph p debate(at)lists(dot)kabissa(dot)org
|
These are pretty big mbox files, so this tends to run for about 30-45 minutes for each forum.
Sadly, I think I've corrupted the forum files in the process because when people post to a list at the same time and maillist.php is called to archive that message, they both write to the forum files at the same time. At least this is what it looks like because I've now got topics containing messages from other topics.
Is there a way to prevent this using lock files or something similar? I don't think I'll be able to rescue my database for now, since I've now imported more than 3000 messages and can't really be sure how many have worked correctly! So I'll be starting over. Live and learn. Good thing I've got these MBOX files to work with..
How do I clear out the topics completely? I seem to only be able to do it up until today using the topic pruning option - how do I delete today's messages too?
Cheers,
Tobias
Kabissa - Space for change in Africa
|
|
|
Re: no maillist.php lock file?? [message #11254 is a reply to message #11252] |
Wed, 25 June 2003 00:38 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
First of all you have a feature called thread prunning (Admin control pane;), that allows you to delete topics/message from a particular forum or category.
mailing list code actually uses forum's internal database locks, so running more then 1 is perfectly fine.
FUDforum Core Developer
|
|
|
Re: no maillist.php lock file?? [message #11255 is a reply to message #11254] |
Wed, 25 June 2003 00:47 |
Tobias Eigen
Messages: 85 Registered: June 2003 Location: Seattle, WA USA
Karma: 0
|
Member |
|
|
Hi Protoss -
So what explains the fact that the messages got mixed up?
I'm not able to prune anything newer than 1 day. I've tried putting a 0 in that field, but it then doesn't do anything.
Thanks for the quick reply.
Cheers,
Tobias
Kabissa - Space for change in Africa
|
|
|
|
|