This commit is contained in:
Ward Wouts 2011-05-20 14:03:33 +00:00
parent f181edab96
commit 289bc069c2
3 changed files with 9 additions and 5 deletions

View file

@ -598,7 +598,7 @@ def get_group_body_first(subj)
p "ieks komt niet door lame check heen" p "ieks komt niet door lame check heen"
return false return false
end end
p "komt wel door lame check heen" # p "komt wel door lame check heen"
while @gotten.has_key?(@groups[subj]["messageinfo"][0][:messid]) == false while @gotten.has_key?(@groups[subj]["messageinfo"][0][:messid]) == false
puts "getting article: #{subj}" if Debuglevel > 0 puts "getting article: #{subj}" if Debuglevel > 0
puts "full subject: #{@groups[subj]['messageinfo'][0][:subject]}" if Debuglevel > 0 puts "full subject: #{@groups[subj]['messageinfo'][0][:subject]}" if Debuglevel > 0

View file

@ -149,10 +149,14 @@ def save_group_as(file, group)
#p Time.now #p Time.now
#p "open & lock file" #p "open & lock file"
begin begin
newsrc = File.new(file, "r+") if FileTest.exists?("#{file}")
newsrc.flock(File::LOCK_EX) newsrc = File.new(file, "r+")
else
newsrc = File.new(file, "w")
end
newsrc.flock(File::LOCK_EX)
rescue rescue
puts "Can't open ${file}: #{$!}" puts "Can't open #{file}: #{$!}"
exit exit
end end
#p Time.now #p Time.now

View file

@ -722,7 +722,7 @@ def startup
@maxfilelength = get_max_file_length(@config[@config.keys[0]]["TEMPDIR"]) @maxfilelength = get_max_file_length(@config[@config.keys[0]]["TEMPDIR"])
puts "\n$Id$" # puts "\n$Id$"
puts "Starting: #{@tstart}" puts "Starting: #{@tstart}"
if Debuglevel > 2 if Debuglevel > 2