mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-08-07 14:12:19 -04:00
Added Reply option and some fixed
Added reply option and some fixes for the Urgent board permissions
This commit is contained in:
parent
35c341e6e6
commit
15d836db27
4 changed files with 30 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue