CVS fait vraiment tout pour masquer l'user rel... :(

darcs-hash:20021119223754-a279a-1060c89019a38a3bfd6c2e0b41774a6289264d86.gz
This commit is contained in:
stransky 2002-11-19 23:37:54 +01:00
parent 0ee4a24c0b
commit c45074352d

View file

@ -224,6 +224,10 @@ def blast_mail(subject, people, filestodiff, contextlines, fromhost):
#Modif cosmétique pour afficher un sujet explicite :
host = string.split(domain,'.')
author = '%s@%s' % (user, domain)
#realuser=string.split(os.popen('/usr/bin/who -m').readlines()[0])[0]
#who=os.popen('/usr/bin/who -m')
#user=toto.readlines()
#print user
s = StringIO()
sys.stdout = s
try:
@ -288,7 +292,14 @@ def main():
subject = args[0]
specs = string.split(args[0])
del args[0]
#Pour ne pas recevoir tout la pollution des batx.cf
nom_fichier = specs[0] + '/' + string.split(specs[1],',')[0]
Ignore=['CRANS/confs/bat', 'CRANS/confs/personnes.cf??']
for ign_fich in Ignore:
if string.find(nom_fichier,ign_fich) == 0:
sys.exit(0)
# The remaining args should be the email addresses
if not args:
usage(1, 'No recipients specified')