1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-07-15 01:24:34 +02:00

Remove the usage of capabilities use port 8080

In the real world users can't get them to work...
This commit is contained in:
Florent Daigniere
2023-08-28 11:17:25 +02:00
parent fb97cec238
commit 562cd8c135
15 changed files with 20 additions and 18 deletions

View File

@ -48,7 +48,7 @@ def fetchmail(fetchmailrc):
def run(debug):
try:
fetches = requests.get(f"http://{os.environ['ADMIN_ADDRESS']}/internal/fetch").json()
fetches = requests.get(f"http://{os.environ['ADMIN_ADDRESS']}:8080/internal/fetch").json()
for fetch in fetches:
fetchmailrc = ""
options = "options antispam 501, 504, 550, 553, 554"
@ -84,7 +84,7 @@ def run(debug):
user_info in error_message):
print(error_message)
finally:
requests.post("http://{}/internal/fetch/{}".format(os.environ['ADMIN_ADDRESS'],fetch['id']),
requests.post("http://{}:8080/internal/fetch/{}".format(os.environ['ADMIN_ADDRESS'],fetch['id']),
json=error_message.split('\n')[0]
)
except Exception: