727 |
|
|
728 |
$fileEntries = Array.new |
$fileEntries = Array.new |
729 |
$todoList = Array.new |
$todoList = Array.new |
|
all_files = "" |
|
730 |
|
|
731 |
File.open("#{$logfile}.emailtmp", File::RDWR|File::CREAT|File::TRUNC) do |mail| |
File.open("#{$logfile}.emailtmp", File::RDWR|File::CREAT|File::TRUNC) do |mail| |
732 |
|
|
746 |
if $subjectPrefix == nil |
if $subjectPrefix == nil |
747 |
$subjectPrefix = "[CVS #{Repository.array.join(',')}]" |
$subjectPrefix = "[CVS #{Repository.array.join(',')}]" |
748 |
end |
end |
749 |
|
|
750 |
# HACK: put all file names at mail subject |
# HACK: put all file names at mail subject |
751 |
|
all_files = "" |
752 |
$fileEntries.each do |file| |
$fileEntries.each do |file| |
753 |
name = htmlEncode(file.name_after_common_prefix) |
name = htmlEncode(file.name_after_common_prefix) |
754 |
if all_files == "" |
if all_files != "" |
|
all_files = name |
|
|
else |
|
755 |
all_files = all_files + ";" + name |
all_files = all_files + ";" + name |
756 |
|
else |
757 |
|
all_files = name |
758 |
end |
end |
759 |
end |
end |
760 |
|
all_files = all_files + ":" |
761 |
|
|
762 |
mailSubject = "#{$subjectPrefix} #{all_files} #{$mailSubject}" |
mailSubject = "#{$subjectPrefix} #{all_files} #{$mailSubject}" |
763 |
if mailSubject.length > $maxSubjectLength |
if mailSubject.length > $maxSubjectLength |