From ce700d8081c8034b060a2b2a682a32c8c1a00eb8 Mon Sep 17 00:00:00 2001 From: huangzhenpc Date: Wed, 5 Mar 2025 10:59:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index c1a9043..6193d0f 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -2,7 +2,7 @@ from flask import Flask, request, jsonify, render_template from .config import Config from .utils import get_latest_emails, get_latest_email_with_code, add_allowed_domain, remove_allowed_domain, get_allowed_domains, get_allowed_domains_with_time import redis -from .smtp_server import start_smtp_server +import smtp_server import threading def create_app(): @@ -66,7 +66,7 @@ def create_app(): return render_template('email_detail.html', email=email) return "邮件不存在", 404 - smtp_thread = threading.Thread(target=start_smtp_server, args=(app,)) + smtp_thread = threading.Thread(target=smtp_server.start_smtp_server, args=(app,)) smtp_thread.daemon = True smtp_thread.start()