Commit fc9b01f2 by netz.coop

v0.1.6 Posttools Fix

1 parent 14f45818
Showing with 4 additions and 2 deletions
2018-01-16 v0.1.6 Posttools Fix
2018-01-16 v0.1.5 Posttools 2018-01-16 v0.1.5 Posttools
2018-01-16 v0.1.4 startscript kill 2018-01-16 v0.1.4 startscript kill
2018-01-16 v0.1.3 USER/DOMAIN/ALIAS select statement 2018-01-16 v0.1.3 USER/DOMAIN/ALIAS select statement
......
...@@ -84,9 +84,9 @@ class mailcnf_posttools(ncauth_base): ...@@ -84,9 +84,9 @@ class mailcnf_posttools(ncauth_base):
return dict return dict
def postsuperdel(self,id,mailname=''): def postsuperdel(self,id,mailname=''):
print('') self.write("postsuper -d "+str(id)+" " )
old_dir = os.getcwd() old_dir = os.getcwd()
os.chdir( os.path.join(os.path.dirname(__file__), "") ) os.chdir( os.path.join(os.path.dirname(__file__), "") )
os.chdir( '..') os.chdir( '..')
p1 = str(Popen("postsuper -d "+str(id) , stdout=PIPE, shell=True).communicate()[0]) p1 = str(Popen("/usr/sbin/postsuper -d "+str(id) , stdout=PIPE, shell=True).communicate()[0])
return "Nachricht "+str(id)+" von "+str(mailname)+" gelöscht" return "Nachricht "+str(id)+" von "+str(mailname)+" gelöscht"
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!