add a note about potential threading

This commit is contained in:
Ward Wouts 2003-06-16 22:13:56 +00:00
parent 291dbadc77
commit 2b6d23fa9e

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/ruby -w #!/usr/local/bin/ruby -w
# $Dwarf: ripnews.rb,v 1.67 2003/06/16 21:48:52 ward Exp $ # $Dwarf: ripnews.rb,v 1.68 2003/06/16 22:07:35 ward Exp $
# $Source$ # $Source$
require 'date' require 'date'
@ -334,6 +334,9 @@ def get_multi(subj, group)
body.collect{|x| file.print "#{x}\n"} body.collect{|x| file.print "#{x}\n"}
return false unless @articles.get_group_body_rest(subj, file) return false unless @articles.get_group_body_rest(subj, file)
fileout = Tempfile.new("riptmp", @config[group]["TEMPDIR"]) fileout = Tempfile.new("riptmp", @config[group]["TEMPDIR"])
# I think a thread should start about here
if UUEncode.is_uuencoded(body) if UUEncode.is_uuencoded(body)
print " UUDecoding...\n" print " UUDecoding...\n"
mode, filename, body = UUEncode.uudecode(file, fileout) mode, filename, body = UUEncode.uudecode(file, fileout)
@ -355,6 +358,9 @@ def get_multi(subj, group)
fileout.close(false) fileout.close(false)
output_data(subj, mode, filename, body) output_data(subj, mode, filename, body)
# thread could end here
return true return true
else else
print " Unknown encoding (not UU, not yEnc), skipping...\n" print " Unknown encoding (not UU, not yEnc), skipping...\n"