本文整理汇总了Python中Milter.stop方法的典型用法代码示例。如果您正苦于以下问题:Python Milter.stop方法的具体用法?Python Milter.stop怎么用?Python Milter.stop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Milter
的用法示例。
在下文中一共展示了Milter.stop方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: BMConfig
# 需要导入模块: import Milter [as 别名]
# 或者: from Milter import stop [as 别名]
time.sleep(BMConfig().get("bmgateway", "bmgateway", "process_interval"))
except KeyboardInterrupt:
interrupted = True
logging.info("Shutting down BM gateway")
print "Shutting down BM gateway, please wait a couple of seconds ..."
intcond.acquire()
intcond.notifyAll()
intcond.release()
if BMConfig().get("bmgateway", "bmgateway", "incoming_thread"):
if have_inotify and email_thread.isAlive:
email_thread.stop()
email_thread.join()
if BMConfig().get("bmgateway", "bmgateway", "outgoing_thread"):
bminbox_thread.join()
if bmoutbox_thread.ident is not None:
bmoutbox_thread.join()
if BMConfig().get("bmgateway", "bmgateway", "milter_thread") and milter_thread.isAlive():
#milter_thread.stop()
try:
Milter.stop()
except:
pass
milter_thread.join()
logging.info("Stopped BM gateway")