From 46f5ead960b8481b205e3f5e9e25671e3e9857d0 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 21 Jun 2018 13:03:50 +0300 Subject: [PATCH] Import email related stuff only if configured --- src/bitmessagemain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index 6b2ecacd..31a475dd 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -51,8 +51,6 @@ from class_singleCleaner import singleCleaner from class_objectProcessor import objectProcessor from class_singleWorker import singleWorker from class_addressGenerator import addressGenerator -from class_smtpDeliver import smtpDeliver -from class_smtpServer import smtpServer from bmconfigparser import BMConfigParser from inventory import Inventory @@ -310,12 +308,14 @@ class Main: # SMTP delivery thread if daemon and BMConfigParser().safeGet( "bitmessagesettings", "smtpdeliver", '') != '': + from class_smtpDeliver import smtpDeliver smtpDeliveryThread = smtpDeliver() smtpDeliveryThread.start() # SMTP daemon thread if daemon and BMConfigParser().safeGetBoolean( "bitmessagesettings", "smtpd"): + from class_smtpServer import smtpServer smtpServerThread = smtpServer() smtpServerThread.start()