--- jonen/ruby/CVSspam/cvsspam.rb 2003/01/19 01:08:40 1.8 +++ jonen/ruby/CVSspam/cvsspam.rb 2003/01/19 01:42:21 1.12 @@ -747,16 +747,17 @@ $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 == nil - all_files = name - else + if all_files != "" all_files = all_files + ";" + name + else + all_files = name end end -mailSubject = "#{$subjectPrefix} #{all_files} #{$mailSubject}" +mailSubject = "#{$subjectPrefix} #{all_files}: #{$mailSubject}" if mailSubject.length > $maxSubjectLength mailSubject = mailSubject[0, $maxSubjectLength] end