747 |
$subjectPrefix = "[CVS #{Repository.array.join(',')}]" |
$subjectPrefix = "[CVS #{Repository.array.join(',')}]" |
748 |
end |
end |
749 |
# HACK: put all file names at mail subject |
# HACK: put all file names at mail subject |
750 |
|
all_files = "" |
751 |
$fileEntries.each do |file| |
$fileEntries.each do |file| |
752 |
name = htmlEncode(file.name_after_common_prefix) |
name = htmlEncode(file.name_after_common_prefix) |
753 |
if all_files == nil |
if all_files != "" |
|
all_files = name |
|
|
else |
|
754 |
all_files = all_files + ";" + name |
all_files = all_files + ";" + name |
755 |
|
else |
756 |
|
all_files = name |
757 |
end |
end |
758 |
end |
end |
759 |
|
|
760 |
mailSubject = "#{$subjectPrefix} #{all_files} #{$mailSubject}" |
mailSubject = "#{$subjectPrefix} #{all_files}: #{$mailSubject}" |
761 |
if mailSubject.length > $maxSubjectLength |
if mailSubject.length > $maxSubjectLength |
762 |
mailSubject = mailSubject[0, $maxSubjectLength] |
mailSubject = mailSubject[0, $maxSubjectLength] |
763 |
end |
end |