--- jonen/ruby/CVSspam/cvsspam.rb 2003/01/19 01:10:28 1.9 +++ jonen/ruby/CVSspam/cvsspam.rb 2003/01/19 03:57:36 1.14 @@ -727,7 +727,6 @@ $fileEntries = Array.new $todoList = Array.new -all_files = "" File.open("#{$logfile}.emailtmp", File::RDWR|File::CREAT|File::TRUNC) do |mail| @@ -747,15 +746,18 @@ if $subjectPrefix == nil $subjectPrefix = "[CVS #{Repository.array.join(',')}]" end + # HACK: put all file names at mail subject +all_files = "" $fileEntries.each do |file| name = htmlEncode(file.name_after_common_prefix) - if all_files == "" - all_files = name - else + if all_files != "" all_files = all_files + ";" + name + else + all_files = name end end +all_files = all_files + ":" mailSubject = "#{$subjectPrefix} #{all_files} #{$mailSubject}" if mailSubject.length > $maxSubjectLength