You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-27 22:18:22 +02:00
@@ -8,6 +8,7 @@ import subprocess
|
||||
import re
|
||||
import requests
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
|
||||
FETCHMAIL = """
|
||||
@@ -45,6 +46,7 @@ def fetchmail(fetchmailrc):
|
||||
|
||||
|
||||
def run(debug):
|
||||
try:
|
||||
fetches = requests.get("http://admin/internal/fetch").json()
|
||||
smtphost, smtpport = extract_host_port(os.environ.get("HOST_SMTP", "smtp"), None)
|
||||
if smtpport is None:
|
||||
@@ -86,6 +88,8 @@ def run(debug):
|
||||
requests.post("http://admin/internal/fetch/{}".format(fetch["id"]),
|
||||
json=error_message.split("\n")[0]
|
||||
)
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user