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"]
print "combinedname\n" if Debuglevel > 1
outfile = "#{subject} [#{filename}]"
while outfile > @maxfilelength
while outfile.length > @maxfilelength
lastlength = outfile.length
subject = subject[0...-1]
outfile = "#{subject} [#{filename}]" # this is going to loop if the #{filename} is too long :(
if outfile.length == lastlength
outfile = filename
while outfile > @maxfilelength
while outfile.length > @maxfilelength
outfile = outfile[0...-1]
end
end
@ -282,7 +282,7 @@ def output_data(subject, mode, filename="", body="")
else
print "shortname\n" if Debuglevel > 1
outfile = filename
while outfile > @maxfilelength
while outfile.length > @maxfilelength
outfile = outfile[0...-1]
end
end