--- jonen/ruby/CVSspam/cvsspam.rb 2003/01/19 01:30:23 1.10 +++ 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 defined? all_files + 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