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')