maxfilelength lijkt nu goed te werken
This commit is contained in:
parent
8eb44dbfe6
commit
941d145f5a
1 changed files with 3 additions and 3 deletions
|
|
@ -268,10 +268,11 @@ 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}]"
|
||||||
|
sub2 = subject
|
||||||
while outfile.length > @maxfilelength
|
while outfile.length > @maxfilelength
|
||||||
lastlength = outfile.length
|
lastlength = outfile.length
|
||||||
subject = subject[0...-1]
|
sub2 = sub2[0...-1]
|
||||||
outfile = "#{subject} [#{filename}]" # this is going to loop if the #{filename} is too long :(
|
outfile = "#{sub2} [#{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.length > @maxfilelength
|
while outfile.length > @maxfilelength
|
||||||
|
|
@ -330,7 +331,6 @@ parse_config(defaults)
|
||||||
check_config
|
check_config
|
||||||
|
|
||||||
@maxfilelength = get_max_file_length(@config[@config.keys[0]]["TEMPDIR"])
|
@maxfilelength = get_max_file_length(@config[@config.keys[0]]["TEMPDIR"])
|
||||||
print "MAXFILELENGTH: #{@maxfilelength}\n"
|
|
||||||
|
|
||||||
print "$Id$\n"
|
print "$Id$\n"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue