Files
email-unsubscribe-links-scr…/result.html
T
Rsclub2_2 b741389754 fix: Debug-Modus raus, gunicorn, UIDs statt Sequenznummern, nur http(s)-Links
- Flask-Debugger (Werkzeug, Codeausführung) war offen auf 0.0.0.0:5000; jetzt gunicorn, Healthcheck
- Verschieben per UID (Sequenznummern verschieben sich nach dem Expunge), nur Ziffern erlaubt
- "Move All" schickte keine IDs mit; Formular enthält jetzt alle UIDs
- Links aus Mails nur noch http(s) (kein javascript:/data:), rel=noopener noreferrer
- Betreff dekodiert, BODY.PEEK (Mails bleiben ungelesen), Python 3.12, feste Versionen, Nicht-Root
- Tests

Claude-Session: https://claude.ai/code/session_01SqzF6qT3TQ8ej3wigEuMSu
2026-10-29 14:08:16 +01:00

47 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>E-Mail Unsubscribe Links Result</title>
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
</head>
<body>
<div class="container">
<h1>E-Mail Unsubscribe Links Result</h1>
<table>
<tr>
<th>UID</th>
<th>Subject</th>
<th>Unsubscribe Link</th>
<th>Move to Trash</th>
</tr>
{% for email_id, data in links_data.items() %}
<tr>
<td>{{ email_id }}</td>
<td>{{ data.subject }}</td>
<td>
{% for link in data.links %}
<a href="{{ link }}" target="_blank" rel="noopener noreferrer">{{ link[:30] + '...' }}</a><br>
{% endfor %}
</td>
<td>
<form action="{{ url_for('move_to_trash') }}" method="post">
<input type="hidden" name="email_id" value="{{ email_id }}">
<button type="submit" class="btn-delete">Move to Trash</button>
</form>
</td>
</tr>
{% endfor %}
</table>
<form action="/" method="get">
<button type="submit" class="btn-primary">Back to Home</button>
</form>
<form action="{{ url_for('move_all_to_trash') }}" method="post">
{% for email_id in links_data %}
<input type="hidden" name="email_id" value="{{ email_id }}">
{% endfor %}
<button type="submit" class="btn-delete">Move All to Trash</button>
</form>
</div>
</body>
</html>