[Xcb-commit] CVSROOT syncmail,1.4,1.5
jkolb
jkolb at gabe.freedesktop.org
Tue May 17 17:28:35 PDT 2005
Update of /cvs/xcb/CVSROOT
In directory gabe:/tmp/cvs-serv32051
Modified Files:
syncmail
Log Message:
Change name to user to fix formatting issues with "From" field of email.
Index: syncmail
===================================================================
RCS file: /cvs/xcb/CVSROOT/syncmail,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- syncmail 17 May 2005 23:27:24 -0000 1.4
+++ syncmail 18 May 2005 00:28:33 -0000 1.5
@@ -123,7 +123,7 @@
BACKSLASH = "Couldn't generate diff: backslash in filespec's filename: %s"
-
+
def usage(code, msg=''):
print __doc__ % globals()
if msg:
@@ -131,7 +131,7 @@
sys.exit(code)
-
+
def calculate_diff(entry, contextlines):
file = entry.name
oldrev = entry.revision
@@ -200,7 +200,7 @@
return ''.join(lines)
-
+
rfc822_specials_re = re.compile(r'[\(\)\<\>\@\,\;\:\\\"\.\[\]]')
def quotename(name):
@@ -210,7 +210,7 @@
return name
-
+
def blast_mail(subject, people, entries, contextlines, fromhost, replyto):
# cannot wait for child process or that will cause parent to retain cvs
# lock for too long. Urg!
@@ -229,7 +229,7 @@
s = StringIO()
datestamp = time.strftime('%a, %d %b %Y %H:%M:%S +0000',
time.gmtime(time.time()))
- vars = {'author' : formataddr((name, address)),
+ vars = {'author' : formataddr((user, address)),
'people' : COMMASPACE.join(people),
'subject' : subject,
'version' : __version__,
@@ -255,7 +255,7 @@
os._exit(0)
-
+
class CVSEntry:
def __init__(self, name, revision, timestamp, conflict, options, tagdate):
self.name = name
@@ -428,7 +428,7 @@
print 'Generating notification message... done.'
-
+
if __name__ == '__main__':
main()
sys.exit(0)
More information about the xcb-commit
mailing list