FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » no maillist.php lock file??
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
no maillist.php lock file?? [message #11252] Tue, 24 June 2003 21:59 Go to next message
Tobias Eigen is currently offline  Tobias Eigen   United States
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. Smile 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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
Tobias Eigen is currently offline  Tobias Eigen   United States
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
Re: no maillist.php lock file?? [message #11258 is a reply to message #11255] Wed, 25 June 2003 12:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You can put a float, for example 0.1 or 0.01 etc...

FUDforum Core Developer
Re: no maillist.php lock file?? [message #11259 is a reply to message #11258] Wed, 25 June 2003 12:41 Go to previous message
Tobias Eigen is currently offline  Tobias Eigen   United States
Messages: 85
Registered: June 2003
Location: Seattle, WA USA
Karma: 0
Member
ah - sweet. that worked.

that's a bit of useful information to add to the docs, methinks. Smile

cheers,

tobias


Kabissa - Space for change in Africa
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: sql error in groups?
Next Topic: maillist.php not working correctly with email addresses containing +
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 06:44:03 GMT 2024

Total time taken to generate the page: 0.03407 seconds