/[cvs]/jonen/ruby/CVSspam/cvsspam.rb
ViewVC logotype

Diff of /jonen/ruby/CVSspam/cvsspam.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by jonen, Sun Jan 19 01:42:21 2003 UTC revision 1.14 by jonen, Sun Jan 19 03:57:36 2003 UTC
# Line 746  end Line 746  end
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 = ""  all_files = ""
752  $fileEntries.each do |file|  $fileEntries.each do |file|
# Line 756  $fileEntries.each do |file| Line 757  $fileEntries.each do |file|
757      all_files = name      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
764    mailSubject = mailSubject[0, $maxSubjectLength]    mailSubject = mailSubject[0, $maxSubjectLength]
765  end  end

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.14

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed