From: Richard B. <ric...@us...> - 2002-02-14 00:22:58
|
CVS Root: /cvsroot/gstreamer Module: CVSROOT Changes by: richardb Date: Wed Feb 13 2002 16:22:57 PST Log message: Stuff Modified files: . : loginfo syncmail Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/CVSROOT/loginfo.diff?r1=1.20&r2=1.21 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/CVSROOT/syncmail.diff?r1=1.2&r2=1.3 ====Begin Diffs==== Index: loginfo =================================================================== RCS file: /cvsroot/gstreamer/CVSROOT/loginfo,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- loginfo 13 Feb 2002 20:00:03 -0000 1.20 +++ loginfo 14 Feb 2002 00:22:55 -0000 1.21 @@ -30,4 +30,4 @@ #ALL /cvsroot/gstreamer/CVSROOT/newlog.pl -s -m gst...@li... -m ric...@ta... -m om...@te... -m wim...@ch... -m pa...@te... -f commits.log %s -ALL $CVSROOT/CVSROOT/syncmail -u --link-viewcvs=http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer --mailhead='To: !{recipients}\nSubject: !{subject}\nReply-To: gst...@li...\n\n' %{sVv} gst...@li... +ALL $CVSROOT/CVSROOT/syncmail -u --link-viewcvs=http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer --mailhead='To: !{recipients}\nSubject: !{subject}\nReply-To: gst...@li...\n\n' --subject='!{modules}: !{dirnames}' %{sVv} gst...@li... Index: syncmail =================================================================== RCS file: /cvsroot/gstreamer/CVSROOT/syncmail,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- syncmail 13 Feb 2002 16:50:13 -0000 1.2 +++ syncmail 14 Feb 2002 00:22:55 -0000 1.3 @@ -155,6 +155,7 @@ # Set the subject for the mail # See the usage docs for valid substitutions the subject can contain SUBJECT = 'Changes in !{dirnames}' +MAX_SUBJECT_LENGTH = 256 # Link patterns: if these are empty, no links are generated CVSLINK_NEW, CVSLINK_MOD, CVSLINK_REM = '', '', '' @@ -280,7 +281,7 @@ rev = '' for file in files: # extract the path to the directory containing the modified file - newdir = os.path.dirname(file[0]) + newdir = os.path.dirname(file[0]) + '/' # extract the filename of the modified file newfilename = file[0] # extract the filename and revision numbers of the files @@ -785,6 +786,8 @@ # Apply substitutions to parameters modules = string.join(modulelist, ' ') subject = (re.sub('!\{([a-z]*?)\}', '%(\\1)s', SUBJECT)) % vars() + if len(subject) > MAX_SUBJECT_LENGTH: + subject = subject[0:MAX_SUBJECT_LENGTH] mailprog = MAILPROG mailcmd = (re.sub('!\{([a-z]*?)\}', '%(\\1)s', MAILCMD)) % vars() mailcmd = mailcmd + ' 2>&1 >/dev/null' |