Added Reply option and some fixed

Added reply option and some fixes for the Urgent board permissions
This commit is contained in:
TC² 2024-07-09 17:46:34 -04:00
parent 35c341e6e6
commit 15d836db27
4 changed files with 30 additions and 9 deletions

View file

@ -156,3 +156,11 @@ def delete_mail(unique_id, recipient_id, bbs_nodes, interface):
raise
def get_sender_id_by_mail_id(mail_id):
conn = get_db_connection()
c = conn.cursor()
c.execute("SELECT sender FROM mail WHERE id = ?", (mail_id,))
result = c.fetchone()
if result:
return result[0]
return None