maxfilelength lijkt nu goed te werken

This commit is contained in:
Ward Wouts 2002-07-31 18:20:42 +00:00
parent 8eb44dbfe6
commit 941d145f5a

View file

@ -268,10 +268,11 @@ 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}]"
sub2 = subject
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 :(
sub2 = sub2[0...-1]
outfile = "#{sub2} [#{filename}]" # this is going to loop if the #{filename} is too long :(
if outfile.length == lastlength
outfile = filename
while outfile.length > @maxfilelength
@ -330,7 +331,6 @@ parse_config(defaults)
check_config
@maxfilelength = get_max_file_length(@config[@config.keys[0]]["TEMPDIR"])
print "MAXFILELENGTH: #{@maxfilelength}\n"
print "$Id$\n"