From b56dbb8e940c50bd3da971468c8266c080df425a Mon Sep 17 00:00:00 2001 From: luke7858 Date: Wed, 5 Aug 2020 09:51:20 +0100 Subject: [PATCH 1/3] Fixed 'PF_DIR' is not defined error --- postfixbuddy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/postfixbuddy.py b/postfixbuddy.py index 97dee12..d1cb032 100755 --- a/postfixbuddy.py +++ b/postfixbuddy.py @@ -50,6 +50,7 @@ def get_options(): # All variables defined in this script reply on finding the queue_directory. # This defines the PF_DIR variable which is called later on. +PF_DIR = None try: GET_QUEUE_DIR = subprocess.Popen(['/usr/sbin/postconf', '-h', 'queue_directory'], From 632913e3c909b3235d81cdd43ef9ffa77bc6c7b4 Mon Sep 17 00:00:00 2001 From: dani2934 Date: Wed, 5 Aug 2020 10:21:51 +0100 Subject: [PATCH 2/3] bump version --- postfixbuddy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postfixbuddy.py b/postfixbuddy.py index d1cb032..06abe08 100755 --- a/postfixbuddy.py +++ b/postfixbuddy.py @@ -13,7 +13,7 @@ from subprocess import call -__version__ = '0.1.0' +__version__ = '0.2.0' def get_options(): From 723ae6b249f320773dcb12ed054a7b4ce7670196 Mon Sep 17 00:00:00 2001 From: dani2934 Date: Wed, 5 Aug 2020 10:38:23 +0100 Subject: [PATCH 3/3] Fix nonetype --- postfixbuddy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postfixbuddy.py b/postfixbuddy.py index 06abe08..862fd37 100755 --- a/postfixbuddy.py +++ b/postfixbuddy.py @@ -50,7 +50,7 @@ def get_options(): # All variables defined in this script reply on finding the queue_directory. # This defines the PF_DIR variable which is called later on. -PF_DIR = None +PF_DIR = "" try: GET_QUEUE_DIR = subprocess.Popen(['/usr/sbin/postconf', '-h', 'queue_directory'],