From ee03e688ea8326aebd16e205dd95ba57efd77082 Mon Sep 17 00:00:00 2001 From: clamsawd Date: Thu, 29 Oct 2015 22:21:43 +0100 Subject: [PATCH] Removed 'Sendmail' dependency --- ip2e-config.py | 2 +- ip2e-daemon.py | 18 +----------------- ip2e-log.py | 2 +- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/ip2e-config.py b/ip2e-config.py index f3de404..3789885 100755 --- a/ip2e-config.py +++ b/ip2e-config.py @@ -7,7 +7,7 @@ # Licensed by GPL v.3 | # Last update: 29-10-2015 | # | -# Dependences: curl, wget, sendEmail, libio-socket-ssl-perl | +# Dependences: curl or wget | # Compatible with Python 3.x | # -------------------------------------------------------------- version="0.7-beta" diff --git a/ip2e-daemon.py b/ip2e-daemon.py index a15010f..ce58b31 100755 --- a/ip2e-daemon.py +++ b/ip2e-daemon.py @@ -7,7 +7,7 @@ # Licensed by GPL v.3 | # Last update: 29-10-2015 | # | -# Dependences: curl, wget, sendEmail, libio-socket-ssl-perl | +# Dependences: curl or wget | # Compatible with Python 3.x | # -------------------------------------------------------------- version="0.7-beta" @@ -87,22 +87,6 @@ else: createip2eIPcf() writeip2eIPcf() -#Check if sendEmail is installed -from subprocess import PIPE, Popen -try: - sendEmailCheck = Popen(['sendEmail', '-q'], stdout=PIPE, stderr=PIPE) - sendEmailCheck.stderr.close() -except: - ClearScreen() - print ("") - print ("Error: 'sendEmail' is not installed!") - print ("") - print ("Help:") - print (" * http://caspian.dotconf.net/menu/Software/SendEmail/") - print ("") - PauseExit=input("Press ENTER to exit ") - exit(1) - #Check if curl is installed try: curlCheck = Popen(['curl', '--version'], stdout=PIPE, stderr=PIPE) diff --git a/ip2e-log.py b/ip2e-log.py index 2f8fc42..482e6e5 100755 --- a/ip2e-log.py +++ b/ip2e-log.py @@ -7,7 +7,7 @@ # Licensed by GPL v.3 | # Last update: 29-10-2015 | # | -# Dependences: curl, wget, sendEmail, libio-socket-ssl-perl | +# Dependences: curl or wget | # Compatible with Python 3.x | # -------------------------------------------------------------- version="0.7-beta"