Import email related stuff only if configured
This commit is contained in:
parent
96773c5d6d
commit
46f5ead960
|
@ -51,8 +51,6 @@ from class_singleCleaner import singleCleaner
|
||||||
from class_objectProcessor import objectProcessor
|
from class_objectProcessor import objectProcessor
|
||||||
from class_singleWorker import singleWorker
|
from class_singleWorker import singleWorker
|
||||||
from class_addressGenerator import addressGenerator
|
from class_addressGenerator import addressGenerator
|
||||||
from class_smtpDeliver import smtpDeliver
|
|
||||||
from class_smtpServer import smtpServer
|
|
||||||
from bmconfigparser import BMConfigParser
|
from bmconfigparser import BMConfigParser
|
||||||
|
|
||||||
from inventory import Inventory
|
from inventory import Inventory
|
||||||
|
@ -310,12 +308,14 @@ class Main:
|
||||||
# SMTP delivery thread
|
# SMTP delivery thread
|
||||||
if daemon and BMConfigParser().safeGet(
|
if daemon and BMConfigParser().safeGet(
|
||||||
"bitmessagesettings", "smtpdeliver", '') != '':
|
"bitmessagesettings", "smtpdeliver", '') != '':
|
||||||
|
from class_smtpDeliver import smtpDeliver
|
||||||
smtpDeliveryThread = smtpDeliver()
|
smtpDeliveryThread = smtpDeliver()
|
||||||
smtpDeliveryThread.start()
|
smtpDeliveryThread.start()
|
||||||
|
|
||||||
# SMTP daemon thread
|
# SMTP daemon thread
|
||||||
if daemon and BMConfigParser().safeGetBoolean(
|
if daemon and BMConfigParser().safeGetBoolean(
|
||||||
"bitmessagesettings", "smtpd"):
|
"bitmessagesettings", "smtpd"):
|
||||||
|
from class_smtpServer import smtpServer
|
||||||
smtpServerThread = smtpServer()
|
smtpServerThread = smtpServer()
|
||||||
smtpServerThread.start()
|
smtpServerThread.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user