diff --git a/app/dashboard/templates/dashboard/setting.html b/app/dashboard/templates/dashboard/setting.html index e3909e62..5dd5bba6 100644 --- a/app/dashboard/templates/dashboard/setting.html +++ b/app/dashboard/templates/dashboard/setting.html @@ -382,6 +382,29 @@ + +
+
+
Ignore Loop Emails
+
+ On some email clients, "Reply All" automatically includes your alias that + would send the same email to your mailbox. +
+ You can disable these "loop" emails by enabling this option. +
+
+ +
+ + +
+ +
+
+
+ +
Quarantine
diff --git a/app/dashboard/views/setting.py b/app/dashboard/views/setting.py index 11b2a9cd..873556af 100644 --- a/app/dashboard/views/setting.py +++ b/app/dashboard/views/setting.py @@ -300,6 +300,15 @@ def setting(): db.session.commit() flash("Your preference has been updated", "success") return redirect(url_for("dashboard.setting")) + elif request.form.get("form-name") == "ignore-loop-email": + choose = request.form.get("enable") + if choose == "on": + current_user.ignore_loop_email = True + else: + current_user.ignore_loop_email = False + db.session.commit() + flash("Your preference has been updated", "success") + return redirect(url_for("dashboard.setting")) elif request.form.get("form-name") == "export-data": return redirect(url_for("api.export_data"))