Commit b21163ba authored by salles's avatar salles
Browse files

Fin du mnage de l'indentation

darcs-hash:20070911175220-72cb0-9a5771057190cd3791fce0399965a9d67b5205fe.gz
parent 21f551a2
......@@ -246,13 +246,13 @@ def blast_mail(subject, people, entries, contextlines, fromhost, replyto, charse
user = pwd.getpwuid(os.getuid())[0]
name = string.split(pwd.getpwuid(os.getuid())[4], ',')[0]
# Modif pour avoir le bon from (=> signature automatique)
if user=="root" :
for proc in os.popen("ps --no-headers -o user -t $(ps --no-headers -o tty %s)" % os.getpid() ).readlines() :
userp=string.strip(proc)
if userp=="root" : break
else : user=userp
name = string.split(pwd.getpwnam(user)[4], ',')[0]
# Modif pour avoir le bon from (=> signature automatique)
if user=="root" :
for proc in os.popen("ps --no-headers -o user -t $(ps --no-headers -o tty %s)" % os.getpid() ).readlines() :
userp=string.strip(proc)
if userp=="root" : break
else : user=userp
name = string.split(pwd.getpwnam(user)[4], ',')[0]
domain = fromhost or getfqdn()
host = string.split(domain,'.')[0]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment