From b21163ba8b812d0deffbe015f87f09b185345932 Mon Sep 17 00:00:00 2001 From: salles Date: Tue, 11 Sep 2007 19:52:20 +0200 Subject: [PATCH] Fin du mnage de l'indentation darcs-hash:20070911175220-72cb0-9a5771057190cd3791fce0399965a9d67b5205fe.gz --- syncmail | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/syncmail b/syncmail index db484b02..d015e287 100755 --- a/syncmail +++ b/syncmail @@ -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]