CVS fait vraiment tout pour masquer l'user rel... :(
darcs-hash:20021119223754-a279a-1060c89019a38a3bfd6c2e0b41774a6289264d86.gz
This commit is contained in:
parent
0ee4a24c0b
commit
c45074352d
1 changed files with 12 additions and 1 deletions
11
syncmail
11
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:
|
||||
|
@ -289,6 +293,13 @@ def main():
|
|||
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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue