meer foutjes

This commit is contained in:
Ward Wouts 2002-07-31 08:32:30 +00:00
parent 7194d0ecc6
commit 8eb44dbfe6

View file

@ -268,13 +268,13 @@ def output_data(subject, mode, filename="", body="")
elsif @config[group].has_key?("-C") and @config[group]["-C"] elsif @config[group].has_key?("-C") and @config[group]["-C"]
print "combinedname\n" if Debuglevel > 1 print "combinedname\n" if Debuglevel > 1
outfile = "#{subject} [#{filename}]" outfile = "#{subject} [#{filename}]"
while outfile > @maxfilelength while outfile.length > @maxfilelength
lastlength = outfile.length lastlength = outfile.length
subject = subject[0...-1] subject = subject[0...-1]
outfile = "#{subject} [#{filename}]" # this is going to loop if the #{filename} is too long :( outfile = "#{subject} [#{filename}]" # this is going to loop if the #{filename} is too long :(
if outfile.length == lastlength if outfile.length == lastlength
outfile = filename outfile = filename
while outfile > @maxfilelength while outfile.length > @maxfilelength
outfile = outfile[0...-1] outfile = outfile[0...-1]
end end
end end
@ -282,7 +282,7 @@ def output_data(subject, mode, filename="", body="")
else else
print "shortname\n" if Debuglevel > 1 print "shortname\n" if Debuglevel > 1
outfile = filename outfile = filename
while outfile > @maxfilelength while outfile.length > @maxfilelength
outfile = outfile[0...-1] outfile = outfile[0...-1]
end end
end end