feat: implement message deletion functionality and improve draft handling

- Added `MoveToTrash` method in `WebmailRepository` to move messages to the Trash folder instead of deleting them permanently.
- Introduced `handleDelete` method in `mailAPI` to handle message deletion requests from the client.
- Updated router to include a new route for message deletion.
- Enhanced the compose page to manage draft integrity, ensuring drafts are correctly associated with sent messages.
- Implemented UI changes to allow users to delete messages from the mail folder view.
- Added tests to verify the correct behavior of message deletion and draft handling.
- Updated database migration scripts to reconcile folder counters and ensure accurate unread counts.
- Added tests for TLS-RPT report parsing and webmail repository functionalities.
This commit is contained in:
Lucas Rayan committed 2026-08-20 15:32:14 -03:00
1 parent 4f1b9c5217
commit 880dced9e4
20 files changed
+1053 -30

No files matched your search

+22
View File
@@ -16,6 +16,28 @@ const nextConfig: NextConfig = {
source: "/api/v1/events",
destination: `${PROTOCOLS_SERVICE_URL}/api/v1/events`,
},
// The well-known documents belong to the protocols service, but the
// hostnames senders ask for - mta-sts.<domain> above all - resolve to
// this app. Without these rewrites the Next 404 page was served in
// place of the MTA-STS policy: the _mta-sts TXT record advertised a
// policy that could not be fetched, so every sender fell back to
// "no-policy-found" and no TLS policy was enforced on inbound mail.
// Google's daily TLS-RPT report reports precisely that.
//
// A rewrite rather than a redirect, because RFC 8461 section 3.3 has
// the sender fetch that exact HTTPS path and it need not follow one.
{
source: "/.well-known/mta-sts.txt",
destination: `${PROTOCOLS_SERVICE_URL}/.well-known/mta-sts.txt`,
},
{
source: "/.well-known/security.txt",
destination: `${PROTOCOLS_SERVICE_URL}/.well-known/security.txt`,
},
{
source: "/.well-known/autoconfig/mail/config-v1.1.xml",
destination: `${PROTOCOLS_SERVICE_URL}/.well-known/autoconfig/mail/config-v1.1.xml`,
},
];
},
};