From c45074352db8c4102ae903bb63dde583e85bcf8b Mon Sep 17 00:00:00 2001 From: stransky Date: Tue, 19 Nov 2002 23:37:54 +0100 Subject: [PATCH] CVS fait vraiment tout pour masquer l'user rel... :( darcs-hash:20021119223754-a279a-1060c89019a38a3bfd6c2e0b41774a6289264d86.gz --- syncmail | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/syncmail b/syncmail index 96dc1db9..c5f4fd9d 100755 --- a/syncmail +++ b/syncmail @@ -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')